Controls look like Windows 98 (DLL/Plugin)

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.
tit_toinou
In need of some credit
In need of some credit
Posts: 6
Joined: Fri Jun 16, 2017 10:12 pm

Controls look like Windows 98 (DLL/Plugin)

Postby tit_toinou » Fri Jun 16, 2017 11:36 pm

Hi there !

I have an issue that I can't reproduce (sorry) but maybe some of you will have an idea on how to solve it. I'm developing a dll plugin with wxWidgets that basically just popups a dialog. When I run the popup in a standalone .exe or with the host A it looks like modern windows 10 controls (bottom of the image) but when the popup is launched from another host B it looks like old Windows 98 controls (top of the image).

My wxWidgets version is 3.1.1, I'm on Windows 10, compiling with Microsoft Visual Studio 2013 Express (v12.0), and I've already tried to add a manifest. The VS projects seem to be similar for the different host and standalone

Any idea :) ?
Attachments
wxwidgets bug.png
Windows 98 controls (top) and Windows 10 controls (bottom)
wxwidgets bug.png (18.07 KiB) Viewed 180 times

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 1846
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Controls look like Windows 98 (DLL/Plugin)

Postby ONEEYEMAN » Mon Jun 19, 2017 3:00 pm

Hi,
What OS is running on HostA and HostB? Which compiler do you use?

Thank you.

tit_toinou
In need of some credit
In need of some credit
Posts: 6
Joined: Fri Jun 16, 2017 10:12 pm

Re: Controls look like Windows 98 (DLL/Plugin)

Postby tit_toinou » Tue Jun 20, 2017 4:22 pm

I'm using Windows 10 for both hosts, the compiler is also MSVC v120. I've also unsuccessfully tried using the SetWindowTheme func on the window handle (but I also didn't understand how to use it to force Windows 10 theme)

PB
wxWorld Domination!
wxWorld Domination!
Posts: 1248
Joined: Sun Jan 03, 2010 5:45 pm

Re: Controls look like Windows 98 (DLL/Plugin)

Postby PB » Tue Jun 20, 2017 5:03 pm

TBH, I do not know much about manifests for DLLs. Anyway, assuming you have a manifest set in the MSVC IDE, how does the .rc file for your DLL look like? Does it have #include <wx/msw/wx.rc>? Does it have #define wxUSE_NO_MANIFEST 1?

tit_toinou
In need of some credit
In need of some credit
Posts: 6
Joined: Fri Jun 16, 2017 10:12 pm

Re: Controls look like Windows 98 (DLL/Plugin)

Postby tit_toinou » Tue Jun 20, 2017 6:19 pm

Yes my .rc looks like this

Code: Select all

#define wxUSE_NO_MANIFEST 1
#include "wx/msw/wx.rc"

PB
wxWorld Domination!
wxWorld Domination!
Posts: 1248
Joined: Sun Jan 03, 2010 5:45 pm

Re: Controls look like Windows 98 (DLL/Plugin)

Postby PB » Tue Jun 20, 2017 7:22 pm

I assume the manifest is proper and embedded in your DLL (can be easily verified e.g. with Resource Hacker), so the problem must be elsewhere, probably a difference in the host app? Unfortunately, I'm out of ideas here.


Return to “Platform Related Issues”

Who is online

Users browsing this forum: No registered users and 1 guest