I have a desire to draw gradient rectangles over the regions of child controls under certain situations such as when the user enters invalid data. Basically, I'm implementing a more visual and less annoying means of doing DDV.
My problem currently is that I can not actually draw over the regions of child controls. My clip rectangle for the DC excludes these regions. I've been trying to use the ::ExtSelectClipRgn and related Win32 functions to achieve the effect of temporarily adding in the region of the child control into the region associated with the parent (CMFCPropertyPage derived class) DC so I can do my drawing. Anyone have any suggestions ?
Personally, I would prefer to avoid the transparent window idea. It just seems more trouble that should be needed to do what I want. The mouse event issues ect.