Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
312dc5dc
Commit
312dc5dc
authored
Feb 19, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorerframe: Use W-functions to access window property.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0028360d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
nstc.c
dlls/explorerframe/nstc.c
+5
-3
No files found.
dlls/explorerframe/nstc.c
View file @
312dc5dc
...
...
@@ -72,6 +72,8 @@ static const DWORD unsupported_styles2 =
NSTCS2_INTERRUPTNOTIFICATIONS
|
NSTCS2_SHOWNULLSPACEMENU
|
NSTCS2_DISPLAYPADDING
|
NSTCS2_DISPLAYPINNEDONLY
|
NTSCS2_NOSINGLETONAUTOEXPAND
|
NTSCS2_NEVERINSERTNONENUMERATED
;
static
const
WCHAR
thispropW
[]
=
{
'P'
,
'R'
,
'O'
,
'P'
,
'_'
,
'T'
,
'H'
,
'I'
,
'S'
,
0
};
static
inline
NSTC2Impl
*
impl_from_INameSpaceTreeControl2
(
INameSpaceTreeControl2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
NSTC2Impl
,
INameSpaceTreeControl2_iface
);
...
...
@@ -502,7 +504,7 @@ static LRESULT create_namespacetree(HWND hWnd, CREATESTRUCTW *crs)
This
->
tv_oldwndproc
=
(
WNDPROC
)
SetWindowLongPtrW
(
This
->
hwnd_tv
,
GWLP_WNDPROC
,
(
ULONG_PTR
)
tv_wndproc
);
if
(
This
->
tv_oldwndproc
)
SetProp
A
(
This
->
hwnd_tv
,
"PROP_THIS"
,
This
);
SetProp
W
(
This
->
hwnd_tv
,
thispropW
,
This
);
return
TRUE
;
}
...
...
@@ -526,7 +528,7 @@ static LRESULT destroy_namespacetree(NSTC2Impl *This)
if
(
This
->
tv_oldwndproc
)
{
SetWindowLongPtrW
(
This
->
hwnd_tv
,
GWLP_WNDPROC
,
(
ULONG_PTR
)
This
->
tv_oldwndproc
);
RemoveProp
A
(
This
->
hwnd_tv
,
"PROP_THIS"
);
RemoveProp
W
(
This
->
hwnd_tv
,
thispropW
);
}
INameSpaceTreeControl2_RemoveAllRoots
(
&
This
->
INameSpaceTreeControl2_iface
);
...
...
@@ -754,7 +756,7 @@ static LRESULT on_kbd_event(NSTC2Impl *This, UINT uMsg, WPARAM wParam, LPARAM lP
static
LRESULT
CALLBACK
tv_wndproc
(
HWND
hWnd
,
UINT
uMessage
,
WPARAM
wParam
,
LPARAM
lParam
)
{
NSTC2Impl
*
This
=
(
NSTC2Impl
*
)
GetProp
A
(
hWnd
,
"PROP_THIS"
);
NSTC2Impl
*
This
=
(
NSTC2Impl
*
)
GetProp
W
(
hWnd
,
thispropW
);
switch
(
uMessage
)
{
case
WM_KEYDOWN
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment