Rachael O'Neill
April 9th, 1999, 03:35 AM
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
Anyone any ideas?
Thanks
|
Click to See Complete Forum and Search --> : Round/Oval Dialog boxes Rachael O'Neill April 9th, 1999, 03:35 AM 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 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 Rachael O'Neill April 9th, 1999, 07:54 AM Many Thanks that works perfectly Rachael codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |