Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
be73d10d
Commit
be73d10d
authored
Aug 13, 2001
by
Guy L. Albertelli
Committed by
Alexandre Julliard
Aug 13, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support to respond to the PGN_CALCSIZE version of the WM_NOTIFY
message.
parent
3554e75c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
treeview.c
dlls/comctl32/treeview.c
+25
-1
No files found.
dlls/comctl32/treeview.c
View file @
be73d10d
...
@@ -4804,6 +4804,29 @@ TREEVIEW_KeyDown(TREEVIEW_INFO *infoPtr, WPARAM wParam)
...
@@ -4804,6 +4804,29 @@ TREEVIEW_KeyDown(TREEVIEW_INFO *infoPtr, WPARAM wParam)
}
}
static
LRESULT
static
LRESULT
TREEVIEW_Notify
(
TREEVIEW_INFO
*
infoPtr
,
WPARAM
wParam
,
LPARAM
lParam
)
{
LPNMHDR
lpnmh
=
(
LPNMHDR
)
lParam
;
if
(
lpnmh
->
code
==
PGN_CALCSIZE
)
{
LPNMPGCALCSIZE
lppgc
=
(
LPNMPGCALCSIZE
)
lParam
;
if
(
lppgc
->
dwFlag
==
PGF_CALCWIDTH
)
{
lppgc
->
iWidth
=
infoPtr
->
treeWidth
;
TRACE
(
"got PGN_CALCSIZE, returning horz size = %ld, client=%ld
\n
"
,
infoPtr
->
treeWidth
,
infoPtr
->
clientWidth
);
}
else
{
lppgc
->
iHeight
=
infoPtr
->
treeHeight
;
TRACE
(
"got PGN_CALCSIZE, returning vert size = %ld, client=%ld
\n
"
,
infoPtr
->
treeHeight
,
infoPtr
->
clientHeight
);
}
return
0
;
}
return
DefWindowProcA
(
infoPtr
->
hwnd
,
WM_NOTIFY
,
wParam
,
lParam
);
}
static
LRESULT
TREEVIEW_Size
(
TREEVIEW_INFO
*
infoPtr
,
WPARAM
wParam
,
LPARAM
lParam
)
TREEVIEW_Size
(
TREEVIEW_INFO
*
infoPtr
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
if
(
wParam
==
SIZE_RESTORED
)
if
(
wParam
==
SIZE_RESTORED
)
...
@@ -5083,7 +5106,8 @@ TREEVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -5083,7 +5106,8 @@ TREEVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
/* WM_MOUSEMOVE */
/* WM_MOUSEMOVE */
/* WM_NOTIFY */
case
WM_NOTIFY
:
return
TREEVIEW_Notify
(
infoPtr
,
wParam
,
lParam
);
/* WM_NOTIFYFORMAT */
/* WM_NOTIFYFORMAT */
...
...
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