Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / How do I change windows gui style or skin in only api

Author
Message
puppysss
18
Years of Service
User Offline
Joined: 13th Mar 2007
Location: UnCyber Space
Posted: 29th Jul 2012 02:19
Hello I heard it made by ncpaint. So I tried to input some drawing source into the ncpaint event area and It drew my bitmap images on its titlebar.
but It was complex even I chose another window, it stopped drawing bitmap.
I really wonder how winamp did it.

:: PUPPYSSS TECHNIQUES :: [href]http://puppyssstechniques.raonnet.com/[href]
Aaron Miller
19
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 29th Jul 2012 10:39 Edited at: 29th Jul 2012 10:40
An easier way to do it is to make the window a popup (WS_POPUP) and handle WM_NCLBUTTONDOWN and return various hit points of the window. Then you can just draw the title how you want. If you need parts of the window to be transparent, just set the window region that way.

EDIT: And WM_NCHITTEST or whatever it is.
EDIT 2: iirc

Cheers,
Aaron

Login to post a reply

Server time is: 2025-05-18 05:16:52
Your offset time is: 2025-05-18 05:16:52