wxMSW styles different with MSVC and MinGW Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Olorin
In need of some credit
In need of some credit
Posts: 7
Joined: Fri Jul 27, 2007 7:53 am

wxMSW styles different with MSVC and MinGW

Post by Olorin » Fri Apr 09, 2010 2:08 am

I successfully compiled wxMSW along with my program using MSVC (shared) and MinGW (static) on WinXP. However I notice that the MSVC build uses WinXP styles but the MinGW build does not. Is there any other flag to pass to the MinGW compiler to ensure the native windows style is used? Currently I defined __WXMSW__ when compiling.
P. L.

eranif
Moderator
Moderator
Posts: 607
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif » Fri Apr 09, 2010 6:31 am

If you mean that you dont get the native XP look n feel it is because you need to add a resource file (.rc) which contains at least the following content:

Code: Select all

#include "wx/msw/wx.rc"
1 24 "wx/msw/wx.manifest"
Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Fri Apr 09, 2010 4:39 pm

"Keyboard not detected. Press F1 to continue"
-- Windows

Olorin
In need of some credit
In need of some credit
Posts: 7
Joined: Fri Jul 27, 2007 7:53 am

Post by Olorin » Sat Apr 17, 2010 7:27 am

Thanks. I used windres to compile the resource. It works now. I couldn't find it on the wiki previously. Probably searching for the wrong keywords as I used "look and feel", "native windows style", etc.
P. L.

User avatar
evstevemd
Part Of The Furniture
Part Of The Furniture
Posts: 2293
Joined: Wed Jan 28, 2009 11:57 am
Location: United Republic of Tanzania
Contact:

Re:

Post by evstevemd » Thu Feb 28, 2013 7:55 pm

eranif wrote:If you mean that you dont get the native XP look n feel it is because you need to add a resource file (.rc) which contains at least the following content:

Code: Select all

#include "wx/msw/wx.rc"
1 24 "wx/msw/wx.manifest"
Eran
Although is an aged post it happened to be saver after hours of search (I was away off windows for almost a year or so)

Thanks Eran for the post!
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
[Ubuntu 19.04/Windows 10 Pro/MacOS 10.13 - GCC/MinGW/Clang, CodeLite IDE]

Post Reply