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 psize
and pptSrc
parameters let you specify what portion of the window you want to update. UpdateLayeredWindow
does not use an invalidation model. It uses an update model.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With