Commit 83a652a9 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

include: Add a couple of documented Toolbar messages definitions.

Thanks to Alan Feldman for pointing this out. Signed-off-by: 's avatarNikolay Sivov <nsivov@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 31cfefd3
...@@ -5155,16 +5155,13 @@ TOOLBAR_GetStringW (const TOOLBAR_INFO *infoPtr, WPARAM wParam, LPWSTR str) ...@@ -5155,16 +5155,13 @@ TOOLBAR_GetStringW (const TOOLBAR_INFO *infoPtr, WPARAM wParam, LPWSTR str)
return ret; return ret;
} }
/* UNDOCUMENTED MESSAGE: This appears to set some kind of size. Perhaps it static LRESULT TOOLBAR_SetBoundingSize(HWND hwnd, WPARAM wParam, LPARAM lParam)
* is the maximum size of the toolbar? */
static LRESULT TOOLBAR_Unkwn45D(HWND hwnd, WPARAM wParam, LPARAM lParam)
{ {
SIZE * pSize = (SIZE*)lParam; SIZE * pSize = (SIZE*)lParam;
FIXME("hwnd=%p, wParam=0x%08lx, size.cx=%d, size.cy=%d stub!\n", hwnd, wParam, pSize->cx, pSize->cy); FIXME("hwnd=%p, wParam=0x%08lx, size.cx=%d, size.cy=%d stub!\n", hwnd, wParam, pSize->cx, pSize->cy);
return 0; return 0;
} }
/* This is an extended version of the TB_SETHOTITEM message. It allows the /* 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 * caller to specify a reason why the hot item changed (rather than just the
* HICF_OTHER that TB_SETHOTITEM sends). */ * HICF_OTHER that TB_SETHOTITEM sends). */
...@@ -6734,8 +6731,8 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) ...@@ -6734,8 +6731,8 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case TB_SETUNICODEFORMAT: case TB_SETUNICODEFORMAT:
return TOOLBAR_SetUnicodeFormat (infoPtr, wParam); return TOOLBAR_SetUnicodeFormat (infoPtr, wParam);
case TB_UNKWN45D: case TB_SETBOUNDINGSIZE:
return TOOLBAR_Unkwn45D(hwnd, wParam, lParam); return TOOLBAR_SetBoundingSize(hwnd, wParam, lParam);
case TB_SETHOTITEM2: case TB_SETHOTITEM2:
return TOOLBAR_SetHotItem2 (infoPtr, wParam, lParam); return TOOLBAR_SetHotItem2 (infoPtr, wParam, lParam);
......
...@@ -1559,8 +1559,9 @@ static const USER_MSG toolbar_array[] = { ...@@ -1559,8 +1559,9 @@ static const USER_MSG toolbar_array[] = {
USM(TB_MAPACCELERATORW ,0), USM(TB_MAPACCELERATORW ,0),
USM(TB_GETSTRINGW ,0), USM(TB_GETSTRINGW ,0),
USM(TB_GETSTRINGA ,0), USM(TB_GETSTRINGA ,0),
USM(TB_UNKWN45D ,8), USM(TB_SETBOUNDINGSIZE ,8),
USM(TB_SETHOTITEM2 ,0), USM(TB_SETHOTITEM2 ,0),
USM(TB_HASACCELERATOR ,0),
USM(TB_SETLISTGAP ,0), USM(TB_SETLISTGAP ,0),
USM(TB_GETIMAGELISTCOUNT ,0), USM(TB_GETIMAGELISTCOUNT ,0),
USM(TB_GETIDEALSIZE ,8), USM(TB_GETIDEALSIZE ,8),
......
...@@ -1213,14 +1213,15 @@ static const WCHAR TOOLBARCLASSNAMEW[] = { 'T','o','o','l','b','a','r', ...@@ -1213,14 +1213,15 @@ static const WCHAR TOOLBARCLASSNAMEW[] = { 'T','o','o','l','b','a','r',
#define TB_GETSTRINGW (WM_USER+91) #define TB_GETSTRINGW (WM_USER+91)
#define TB_GETSTRINGA (WM_USER+92) #define TB_GETSTRINGA (WM_USER+92)
#define TB_GETSTRING WINELIB_NAME_AW(TB_GETSTRING) #define TB_GETSTRING WINELIB_NAME_AW(TB_GETSTRING)
#define TB_SETBOUNDINGSIZE (WM_USER+93)
/* undocumented messages in Toolbar */
#ifdef __WINESRC__
#define TB_UNKWN45D (WM_USER+93)
#define TB_SETHOTITEM2 (WM_USER+94) #define TB_SETHOTITEM2 (WM_USER+94)
#define TB_HASACCELERATOR (WM_USER+95)
#define TB_SETLISTGAP (WM_USER+96) #define TB_SETLISTGAP (WM_USER+96)
#define TB_GETIMAGELISTCOUNT (WM_USER+98) #define TB_GETIMAGELISTCOUNT (WM_USER+98)
#define TB_GETIDEALSIZE (WM_USER+99) #define TB_GETIDEALSIZE (WM_USER+99)
/* undocumented messages in Toolbar */
#ifdef __WINESRC__
#define TB_UNKWN464 (WM_USER+100) #define TB_UNKWN464 (WM_USER+100)
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment