חלילה וחס
משתמשים ב:
int SetWindowRgn( HWND hWnd, // handle to window HRGN hRgn, // handle to region BOOL bRedraw // window redraw option );
ה hWnd ברור, וגם bRedraw ברור. השאלה מה זה hRgn? את hRgn אתה יכול להשיג בעזרת הפונקציות הבאות ששמם מתאר את מה שהם עושות:
HRGN CreateRectRgn( int nLeftRect, // x-coordinate of upper-left corner int nTopRect, // y-coordinate of upper-left corner int nRightRect, // x-coordinate of lower-right corner int nBottomRect // y-coordinate of lower-right corner ); HRGN CreatePolygonRgn( CONST POINT *lppt, // array of points int cPoints, // number of points in array int fnPolyFillMode // polygon-filling mode ); HRGN CreateRoundRectRgn( int nLeftRect, // x-coordinate of upper-left corner int nTopRect, // y-coordinate of upper-left corner int nRightRect, // x-coordinate of lower-right corner int nBottomRect, // y-coordinate of lower-right corner int nWidthEllipse, // height of ellipse int nHeightEllipse // width of ellipse );
ויש עוד ...