I’m using UpdateLayeredWindow to create a layered window, and I’ve implemented drawing logic for the child controls. My problem is that every time a change occurs to the uI, the whole frame needs to be redrawn. I wondered if there was a way to only redraw a specific CRect or CRgn of the window (ie, passing the relevant CDC into UpdateLayeredWindow, but specifying the CRect you want to be invlidated).
Would using UpdateLayeredWindowIndirect, and setting the prcDirty CRect in the UPDATELAYEREDWINDOWINFO struct, to the client area of the control, cause an update of only that area?
The
psizeandpptSrcparameters let you specify what portion of the window you want to update.UpdateLayeredWindowdoes not use an invalidation model. It uses an update model.