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

Alexandre Julliard julliard at winehq.org
Fri Dec 18 10:49:09 CST 2009


Module: wine
Branch: master
Commit: d88c34099b16540c1f122d5e97ad7529a1883176
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d88c34099b16540c1f122d5e97ad7529a1883176

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Dec 18 12:37:05 2009 +0100

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

---

 dlls/user32/controls.h  |    2 ++
 dlls/user32/icontitle.c |    4 +---
 dlls/user32/winproc.c   |    1 +
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h
index 16ebe6d..726ca72 100644
--- a/dlls/user32/controls.h
+++ b/dlls/user32/controls.h
@@ -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 */
 
diff --git a/dlls/user32/icontitle.c b/dlls/user32/icontitle.c
index aa8ebc5..b6f2c08 100644
--- a/dlls/user32/icontitle.c
+++ b/dlls/user32/icontitle.c
@@ -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 */
diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c
index a5cbf32..0f9b6f2 100644
--- a/dlls/user32/winproc.c
+++ b/dlls/user32/winproc.c
@@ -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;




More information about the wine-cvs mailing list