|
-
April 9th, 1999, 03:35 AM
#1
Round/Oval Dialog boxes
I would like to create a round or oval dialog box which would need to contain some buttons, in vc++ 5 if possible, or in vb5.
Anyone any ideas?
Thanks
-
April 9th, 1999, 05:32 AM
#2
Re: Round/Oval Dialog boxes
Hi,
Add a CRgn member called m_wndRegion to your dialog class and place the following lines in the OnInitDialog function.
This sample will cause the dialog to be elliptic but you can create the¨
CRgn object to any shape you want.
{
CRect wndRect;
GetWindowRect(wndRect);
m_wndRegion.CreateEllipticRgn(wndRect.left,wndRect.top,wndRect.Width(),wndRect.Height());
SetWindowRgn(m_wndRegion,TRUE);
}
Mats Bejedahl
-
April 9th, 1999, 07:54 AM
#3
Re: Round/Oval Dialog boxes
Many Thanks that works perfectly
Rachael
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|