I tried:


INVOKE CreateWindowEx,NULL,CTEXT("button"),NULL,\
WS_CHILD or WS_VISIBLE or WS_TABSTOP or BS_BITMAP,50,100,48,48,\
hWnd,88,hInstance,NULL

mov hWndButton,eax

invoke GetClientRect,hWndButton,addr DlgRect
invoke SetWindowRgn,hWndButton,NULL,TRUE
invoke CreateEllipticRgn,DlgRect.left,DlgRect.top,DlgRect.right,DlgRect.bottom
mov hRgn,eax
invoke SetWindowRgn,hWndButton,hRgn,TRUE


... and it's not working.
Posted on 2003-08-16 16:41:33 by goofee
Hey goofee!
Looks like the region has been created and works only your corners of the button are still drawn.
List and treeviews are drawn right so maybe you will have to set the button to owner-drawn and paint it yourself .
But since you were using regions you were probably going to do some fancy stuff anyway. I don't know about the owner-drawn bit though. Maybe someone else can help you here.
Posted on 2003-08-17 05:45:36 by goofee
Posted on 2003-08-18 00:25:51 by P2M