https://bugs.winehq.org/show_bug.cgi?id=38124
Bug ID: 38124 Summary: Can't enable visual style in a DLL. Product: Wine Version: 1.7.37 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: jactry92@gmail.com Distribution: ---
Created attachment 50815 --> https://bugs.winehq.org/attachment.cgi?id=50815 testcase
Hi all,
I tired to enable visual style[1] for dialog in shell32.dll and comdlg32.dll. Normally, a dialog will be themed by visual style when comctl32.dll v6 and InitCommonControls() was used. I implemented a dialog in a dll, and used 'Activation Contexts'[2] to let the dll depend on comctl32.dll and call InitCommonControls(), but when the dialog was called by another program, the dialog didn't be themed.
testcase.tar.gz is testcase I wrote for reproducing this bug. You can reproduce the bug follow: 1. Install and enable a visual style theme in winecfg; 2. Download the testcase, unarchive it and make; 3. $ wine main.exe, click the 'OK' button. You can see button in the main windows was themed but two buttons in the dialog was not themed. (as picture testcase_wine.png showing)
Expected result: The dialog also is themed, as picture testcase_windows.png showing.
[1] https://msdn.microsoft.com/en-us/library/windows/desktop/bb773187(v=vs.85).a... [2] https://msdn.microsoft.com/en-us/library/aa374153(v=vs.85).aspx