mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 18:57:19 +00:00
explorerframe: Correctly initialize common controls.
This commit is contained in:
parent
d67b99aef2
commit
4c6e039aa1
|
@ -1,5 +1,5 @@
|
||||||
MODULE = explorerframe.dll
|
MODULE = explorerframe.dll
|
||||||
IMPORTS = uuid ole32 shell32 user32
|
IMPORTS = uuid ole32 comctl32 shell32 user32
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
explorerframe_main.c \
|
explorerframe_main.c \
|
||||||
|
|
|
@ -869,6 +869,7 @@ static HRESULT WINAPI NSTC2_fnInitialize(INameSpaceTreeControl2* iface,
|
||||||
NSTC2Impl *This = impl_from_INameSpaceTreeControl2(iface);
|
NSTC2Impl *This = impl_from_INameSpaceTreeControl2(iface);
|
||||||
WNDCLASSW wc;
|
WNDCLASSW wc;
|
||||||
DWORD window_style, window_ex_style;
|
DWORD window_style, window_ex_style;
|
||||||
|
INITCOMMONCONTROLSEX icex;
|
||||||
RECT rc;
|
RECT rc;
|
||||||
static const WCHAR NSTC2_CLASS_NAME[] =
|
static const WCHAR NSTC2_CLASS_NAME[] =
|
||||||
{'N','a','m','e','s','p','a','c','e','T','r','e','e',
|
{'N','a','m','e','s','p','a','c','e','T','r','e','e',
|
||||||
|
@ -882,6 +883,10 @@ static HRESULT WINAPI NSTC2_fnInitialize(INameSpaceTreeControl2* iface,
|
||||||
|
|
||||||
This->style = nstcsFlags;
|
This->style = nstcsFlags;
|
||||||
|
|
||||||
|
icex.dwSize = sizeof( icex );
|
||||||
|
icex.dwICC = ICC_TREEVIEW_CLASSES;
|
||||||
|
InitCommonControlsEx( &icex );
|
||||||
|
|
||||||
if(!GetClassInfoW(explorerframe_hinstance, NSTC2_CLASS_NAME, &wc))
|
if(!GetClassInfoW(explorerframe_hinstance, NSTC2_CLASS_NAME, &wc))
|
||||||
{
|
{
|
||||||
wc.style = CS_HREDRAW | CS_VREDRAW;
|
wc.style = CS_HREDRAW | CS_VREDRAW;
|
||||||
|
|
Loading…
Reference in a new issue