|
-
April 3rd, 1999, 01:10 AM
#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
-
April 3rd, 1999, 08:38 AM
#2
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
-
April 3rd, 1999, 02:44 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|