[RESOLVED] on regions (HRGN)
Hello!
I'm creating a window of arbitrary shape and have some questions about regions. ( I assume they could be generalized to objects. )
Particularly:
1)
Code:
{
register HRGN hRgn = CreateRectRgn( tail, row, head, row+1 );
CombineRgn( hRegion,
hRegion,
hRgn,
RGN_OR
);
DeleteObject( hRgn ); // I do not use hRgn any more. Could(or should) I delete it?
}
2) May/Must/Should I delete a region passed to SetWindowRgn(), if I do not need it any more, but window still exists?
3) I have a function HRGN build_region( HBITMAP hBitmap, COLORREF rgbTransparent ). It builds a region on basis of the bitmap, only non-rgbTransparent pixels form a region. I'm not a native English speaker. Are the names of identifiers correct?