CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: vc++

  1. #1
    Join Date
    Apr 1999
    Posts
    1

    vc++

    How to make circular dialog box


  2. #2
    Join Date
    May 1999
    Location
    Oregon, USA
    Posts
    302

    Re: vc++


    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured