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
76b805da
Commit
76b805da
authored
Jan 02, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Add names for now documented toolbar messages.
parent
a4644e5a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
35 deletions
+33
-35
toolbar.c
dlls/comctl32/toolbar.c
+23
-28
spy.c
dlls/user32/spy.c
+4
-3
commctrl.h
include/commctrl.h
+6
-4
No files found.
dlls/comctl32/toolbar.c
View file @
76b805da
...
...
@@ -5242,12 +5242,11 @@ static LRESULT TOOLBAR_Unkwn45D(HWND hwnd, WPARAM wParam, LPARAM lParam)
}
/* UNDOCUMENTED MESSAGE: This is an extended version of the
* TB_SETHOTITEM message. It allows the caller to specify a reason why the
* hot item changed (rather than just the HICF_OTHER that TB_SETHOTITEM
* sends). */
/* This is an extended version of the TB_SETHOTITEM message. It allows the
* caller to specify a reason why the hot item changed (rather than just the
* HICF_OTHER that TB_SETHOTITEM sends). */
static
LRESULT
TOOLBAR_
Unkwn45E
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLBAR_
SetHotItem2
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
INT
nOldHotItem
=
infoPtr
->
nHotItem
;
...
...
@@ -5268,18 +5267,15 @@ TOOLBAR_Unkwn45E (HWND hwnd, WPARAM wParam, LPARAM lParam)
return
(
nOldHotItem
<
0
)
?
-
1
:
(
LRESULT
)
nOldHotItem
;
}
/*
UNDOCUMENTED MESSAGE: This sets the toolbar global iListGap parameter
*
which controls the amount of spacing between the image and the text
*
of buttons for TBSTYLE_LIST
toolbars. */
static
LRESULT
TOOLBAR_
Unkwn460
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
/*
Sets the toolbar global iListGap parameter which controls the amount of
*
spacing between the image and the text of buttons for TBSTYLE_LIST
* toolbars. */
static
LRESULT
TOOLBAR_
SetListGap
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
TRACE
(
"hwnd=%p iListGap=%ld
\n
"
,
hwnd
,
wParam
);
if
(
lParam
!=
0
)
FIXME
(
"lParam = 0x%08lx. Please report
\n
"
,
lParam
);
infoPtr
->
iListGap
=
(
INT
)
wParam
;
InvalidateRect
(
hwnd
,
NULL
,
TRUE
);
...
...
@@ -5287,9 +5283,9 @@ static LRESULT TOOLBAR_Unkwn460(HWND hwnd, WPARAM wParam, LPARAM lParam)
return
0
;
}
/*
UNDOCUMENTED MESSAGE: This returns the number of maximum number
*
of image lists associated with the
various states. */
static
LRESULT
TOOLBAR_
Unkwn462
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
/*
Returns the number of maximum number of image lists associated with the
* various states. */
static
LRESULT
TOOLBAR_
GetImageListCount
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
...
...
@@ -5299,7 +5295,7 @@ static LRESULT TOOLBAR_Unkwn462(HWND hwnd, WPARAM wParam, LPARAM lParam)
}
static
LRESULT
TOOLBAR_
Unkwn463
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLBAR_
GetIdealSize
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
LPSIZE
lpsize
=
(
LPSIZE
)
lParam
;
...
...
@@ -5314,7 +5310,7 @@ TOOLBAR_Unkwn463 (HWND hwnd, WPARAM wParam, LPARAM lParam)
* lParam pointer to SIZE structure
*
*/
TRACE
(
"
[0463]
wParam %ld, lParam 0x%08lx -> 0x%08x 0x%08x
\n
"
,
TRACE
(
"wParam %ld, lParam 0x%08lx -> 0x%08x 0x%08x
\n
"
,
wParam
,
lParam
,
lpsize
->
cx
,
lpsize
->
cy
);
switch
(
wParam
)
{
...
...
@@ -5341,11 +5337,10 @@ TOOLBAR_Unkwn463 (HWND hwnd, WPARAM wParam, LPARAM lParam)
lpsize
->
cy
=
infoPtr
->
rcBound
.
bottom
-
infoPtr
->
rcBound
.
top
;
break
;
default:
ERR
(
"Unknown wParam %ld for Toolbar message [0463]. Please report
\n
"
,
wParam
);
FIXME
(
"Unknown wParam %ld
\n
"
,
wParam
);
return
0
;
}
TRACE
(
"
[0463]
set to -> 0x%08x 0x%08x
\n
"
,
TRACE
(
"set to -> 0x%08x 0x%08x
\n
"
,
lpsize
->
cx
,
lpsize
->
cy
);
return
1
;
}
...
...
@@ -6920,17 +6915,17 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
TB_UNKWN45D
:
return
TOOLBAR_Unkwn45D
(
hwnd
,
wParam
,
lParam
);
case
TB_
UNKWN45E
:
return
TOOLBAR_
Unkwn45E
(
hwnd
,
wParam
,
lParam
);
case
TB_
SETHOTITEM2
:
return
TOOLBAR_
SetHotItem2
(
hwnd
,
wParam
,
lParam
);
case
TB_
UNKWN460
:
return
TOOLBAR_
Unkwn460
(
hwnd
,
wParam
,
lParam
);
case
TB_
SETLISTGAP
:
return
TOOLBAR_
SetListGap
(
hwnd
,
wParam
,
lParam
);
case
TB_
UNKWN462
:
return
TOOLBAR_
Unkwn462
(
hwnd
,
wParam
,
lParam
);
case
TB_
GETIMAGELISTCOUNT
:
return
TOOLBAR_
GetImageListCount
(
hwnd
,
wParam
,
lParam
);
case
TB_
UNKWN463
:
return
TOOLBAR_
Unkwn463
(
hwnd
,
wParam
,
lParam
);
case
TB_
GETIDEALSIZE
:
return
TOOLBAR_
GetIdealSize
(
hwnd
,
wParam
,
lParam
);
case
TB_UNKWN464
:
return
TOOLBAR_Unkwn464
(
hwnd
,
wParam
,
lParam
);
...
...
dlls/user32/spy.c
View file @
76b805da
...
...
@@ -1511,9 +1511,10 @@ static const USER_MSG toolbar_array[] = {
USM
(
TB_GETSTRINGW
,
0
),
USM
(
TB_GETSTRINGA
,
0
),
USM
(
TB_UNKWN45D
,
8
),
USM
(
TB_UNKWN45E
,
0
),
USM
(
TB_UNKWN460
,
0
),
USM
(
TB_UNKWN463
,
8
),
USM
(
TB_SETHOTITEM2
,
0
),
USM
(
TB_SETLISTGAP
,
0
),
USM
(
TB_GETIMAGELISTCOUNT
,
0
),
USM
(
TB_GETIDEALSIZE
,
8
),
USM
(
TB_UNKWN464
,
0
),
{
0
,
0
,
0
}
};
...
...
include/commctrl.h
View file @
76b805da
...
...
@@ -1213,12 +1213,14 @@ static const WCHAR TOOLBARCLASSNAMEW[] = { 'T','o','o','l','b','a','r',
#define TB_GETSTRING WINELIB_NAME_AW(TB_GETSTRING)
/* undocumented messages in Toolbar */
#ifdef __WINESRC__
#define TB_UNKWN45D (WM_USER+93)
#define TB_
UNKWN45E
(WM_USER+94)
#define TB_
UNKWN460
(WM_USER+96)
#define TB_
UNKWN462
(WM_USER+98)
#define TB_
UNKWN463
(WM_USER+99)
#define TB_
SETHOTITEM2
(WM_USER+94)
#define TB_
SETLISTGAP
(WM_USER+96)
#define TB_
GETIMAGELISTCOUNT
(WM_USER+98)
#define TB_
GETIDEALSIZE
(WM_USER+99)
#define TB_UNKWN464 (WM_USER+100)
#endif
#define TB_GETMETRICS (WM_USER+101)
#define TB_SETMETRICS (WM_USER+102)
...
...
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