|
-
May 28th, 1999, 02:44 PM
#1
Non rectangular application windows.
I have seen a bunch of new apps with highly customized interfaces. Completely customized app windows, etc. How do they do that? @home has a utility that looks like that and I saw Media player that was outstanding looking. Where do I start?
Stupendous!
-
May 28th, 1999, 03:09 PM
#2
Re: Non rectangular application windows.
see setwindowrgn.
regards,
M
-
May 29th, 1999, 02:32 AM
#3
Re: Non rectangular application windows.
Hi,
SetWindowRgn
It is very slow or you have to include already made rgn file. Isn't it ?
Andris
-
June 13th, 1999, 09:53 PM
#4
Re: Non rectangular application windows.
You do not have to use predefined rgn files to use SetWindowRgn. SetWindowRgn expects a regios. You can use API's like reateEllipticalRgn, CreatePolygonRgn, CreateRectRgn, and CreateRoundRgn functions to create regions.
In addition, you can use BeginPath(...), EndPath(...), and PathToRegion(...) also. Start with BeginPath(...) for a HDC. use API's that draw on a HDC like LineTo(..) or Ellipse(..., etc. Then use EndPath(...). This will create a path for a DC. Next, convert the PATH to a region by using PathToRegion(...). This will give you a handle to a region. You can then use this in SetWindowRgn.
I have used this very extensivley in my products and it works very well without having to rely on RGN files.
Hope this helps.
Vali
-
June 14th, 1999, 02:27 AM
#5
Re: Non rectangular application windows.
Yes, but in most cases I don't know the bitmap i'll use. I mean I'll load it dynamicly, like WinAMP skins, only transparent. Is there a fast way to get RGN from bitmap ?
Anyway, thanks.
-
June 14th, 1999, 01:15 PM
#6
Re: Non rectangular application windows.
-
June 15th, 1999, 02:06 AM
#7
Re: Non rectangular application windows.
Should take a look at this Web Page :
http://www.aysec.com/
search : AYS-NoBo for PC
Its a complete sample with source code.
Hoping that help
Fred
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
|