Crgn variable is required for execution.
CombineRgn(Crgn, hRgn1, hRgn2, RGN_AND); It got it. He was shut up with CreateRectRgn (0,0,0,0) ; By absurdity and inexperience, he considered that CombineRgn itself would create a region. Thanks to all.
Read mana , they rulez!
hrgnDest [in]
Combining two other regions. ( This region must exist before CombineRgn is called .)
My fatness Regions are created Create<shape>Rgn .
Naturally, initialization is required because destination region descriptor - parameter "in". The result of the operation is recorded in this region (the current content will be overwritten). The apparent illogicality with "in" and "out" arises because the API gives access only to opaque descriptors, and not to the data structures themselves.
In my opinion, the function (or macro) of HRGN CreateNullRgn(void) .
Source: https://ru.stackoverflow.com/questions/99320/
All Articles
CRgn::CombineRgn?! - karmadro4