visual c++ - CRgn ScreenToClient -
i have several custom drawn cstatic use setwindowrgn
give each of them irregular (non-rectangular) shape. need invalidate region behind each of these controls onerasebkgnd
, use cwnd::invalidatergn
on parent cdialog
need translate crgn
coordinates of parent. have cwnd::screentoclient(crgn *)
far can see no such thing exists.
how equivalent of cwnd::screentoclient
takes crgn?
- split
crgn
region rectangles usinggetregiondata
screentoclient
individual rectangles- combine output region using
createfromdata
an alternate option crgn::offsetrgn
offet region using distance obtained screentoclient
individual point.
Comments
Post a Comment