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
);

Recommended Answers

All 4 Replies

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.

commented: For better or worse that seems to be M$'s strategy +4

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.