Jump to content
Tuts 4 You

Skinning a static Box in Dialog?


hmi222

Recommended Posts

Posted

Hi.

Im trying to skin a Static Box in a dialog with a Region.

But it doesnt work at all.

The Dialog itself skins with its Region.

Trying for the Static Box:

invoke GetDlgItem,hWnd,IDC_Static1 ;Getting the hwnd of StaticBox

mov hWnd_OGL,eax

invoke CreateEllipticRgn ,20,-20,190,150 ;create an eliptic Region

invoke SetWindowRgn,hWnd_OGL,eax,TRUE ;apply to Static Box.

---> after that Box is as Orginal , a Rectangle! :verymad:

so is it possible to skin a Dialogbox Control???? :dunno:

Thanx in advance

Posted

Finally got it to work.

It skins the view as Elippse, but

paints the rest of the Rectangle in its grey.

So ive to create a brush for the rest of

the rectangle to its background.

Is ther another solution?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...