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
);
Re: Problem with graphical interface on Windows 80 80

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
Re: Problem with graphical interface on Windows 80 80

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

Re: Problem with graphical interface on Windows 80 80

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

Re: Problem with graphical interface on Windows 80 80
Be a part of the DaniWeb community

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