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 using getregiondata
  • screentoclient individual rectangles
  • combine output region using createfromdata

an alternate option crgn::offsetrgn offet region using distance obtained screentoclient individual point.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -