Commit d88c3409 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Pre-allocate the window procedure for the icon title class.

parent 0c4e151e
......@@ -45,6 +45,7 @@ enum builtin_winprocs
WINPROC_STATIC,
/* unicode-only procs */
WINPROC_DESKTOP,
WINPROC_ICONTITLE,
NB_BUILTIN_WINPROCS,
NB_BUILTIN_AW_WINPROCS = WINPROC_DESKTOP
};
......@@ -79,6 +80,7 @@ extern const struct builtin_class_descr SCROLL_builtin_class DECLSPEC_HIDDEN;
extern const struct builtin_class_descr STATIC_builtin_class DECLSPEC_HIDDEN;
extern LRESULT WINAPI DesktopWndProc(HWND,UINT,WPARAM,LPARAM) DECLSPEC_HIDDEN;
extern LRESULT WINAPI IconTitleWndProc(HWND,UINT,WPARAM,LPARAM) DECLSPEC_HIDDEN;
/* Wow handlers */
......
......@@ -38,8 +38,6 @@
static BOOL bMultiLineTitle;
static HFONT hIconTitleFont;
static LRESULT WINAPI IconTitleWndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam );
/*********************************************************************
* icon title class descriptor
*/
......@@ -48,7 +46,7 @@ const struct builtin_class_descr ICONTITLE_builtin_class =
(LPCWSTR)ICONTITLE_CLASS_ATOM, /* name */
0, /* style */
NULL, /* procA (winproc is Unicode only) */
IconTitleWndProc, /* procW */
BUILTIN_WINPROC(WINPROC_ICONTITLE), /* procW */
0, /* extra */
IDC_ARROW, /* cursor */
0 /* brush */
......
......@@ -75,6 +75,7 @@ static WINDOWPROC winproc_array[MAX_WINPROCS] =
{ ScrollBarWndProcA, ScrollBarWndProcW }, /* WINPROC_SCROLLBAR */
{ StaticWndProcA, StaticWndProcW }, /* WINPROC_STATIC */
{ NULL, DesktopWndProc }, /* WINPROC_DESKTOP */
{ NULL, IconTitleWndProc }, /* WINPROC_ICONTITLE */
};
static UINT winproc_used = NB_BUILTIN_WINPROCS;
......
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