pratip gupta
April 13th, 1999, 01:03 AM
How to make circular dialog box
|
Click to See Complete Forum and Search --> : vc++ pratip gupta April 13th, 1999, 01:03 AM How to make circular dialog box Gomez Addams April 13th, 1999, 01:00 PM 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); } from Mats Bejedahl codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |