954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problem with graphical interface on Windows

Hello
I'm trying to make a window with Windows API. Whenever I run my application, the buttons look like Windows 98 buttons. How do I make the buttons look like XP buttons on Windows XP and Win7 buttons on Windows 7?

My compiler is Mingw.

CreateWindowEx(
    0, "BUTTON", "OK",
    WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON
    10, 10, 50, 25,
    hwnd, (HMENU)com, hInstance, NULL
);
Hand
Newbie Poster
9 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

Not sure of your requirements as far as compilers go, but have you tried looking into C# ? *prepares flame shield* From my experience, unless I'm writing financial software or guiding missiles down chimneys, I prefer C# for anything GUI based. However, you may have a restriction against this for some reason.

Duki
Nearly a Posting Virtuoso
1,475 posts since Jun 2006
Reputation Points: 817
Solved Threads: 32
 

I don't work with C# or .net, I work with C++.

Hand
Newbie Poster
9 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

Have you tried Qt - It's fairly mainstream now.

Duki
Nearly a Posting Virtuoso
1,475 posts since Jun 2006
Reputation Points: 817
Solved Threads: 32
 
Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: