CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 1999
    Posts
    1

    GUI that is not a Dialog

    How do you have a program's GUI not be the typical dialog etc. Programs such as Sonique and Winamp use a graphic for interaction. Is this possible with Visual C++

    Thanks


  2. #2
    Guest

    Re: GUI that is not a Dialog

    I believe the way to create an irregular shaped window is to use CreatePolygonRgn to create a region that is the same shape as your bitmap. Then you would use SetWindowRgn to make the window that size and shape. You would do all this in the window's OnInitDialog. There may be other ways.

    Hope this helps,
    Gary Kirkham


  3. #3
    Guest

    Re: GUI that is not a Dialog

    Yes, I did this once. But you have to be careful how you do this.

    The window still considers itself to be a rectangle, the poly region thing really just cuts chunks off the dialog. The cut edge won't have the nice edge that regular windows have.

    Also, if you cut off the title bar, you won't have anything to move the window with! You'll have to override some functions to allow dragging.


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