Archived

This topic is now archived and is closed to further replies.

Zimans

XP style graphic buttons

Recommended Posts

Zimans    237
How do you create a button on a control so that it takes advantage of the current theme to draw it? I use CreateWindowEx with the "button" class, but I cannot find any WS_ styles or WS_EX_ styles to make windows draw it as a graphic button. MSDN hasn''t proven to useful yet in figuring it out.. If anyone knows how to do this let me know. Thx -Zims

Share this post


Link to post
Share on other sites
Chem0sh    122
Check out this link on MSDN.

WinXP Visual Styles

It''s pretty simple. Add the manifest file to your project, include the common control header and library, and create and fill an INITCOMMONCONTROLSEX structure and make a call to InitCommonControlsEx at the beginning of your WinMain. Check out the link for full details on how to do this exactly.

/*=========================================*/
/* Chem0sh */
/* Lead Software Engineer & Tech Support */
/* http://www.eFaces.biz */
/*=========================================*/

Share this post


Link to post
Share on other sites