winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
December 2009
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
3 participants
1233 discussions
Start a n
N
ew thread
Owen Rudge : mapi32: Correct the Simple MAPI parameters.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 4194250f6c5c4190b2b17ad6faf282aa5ac0d202 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4194250f6c5c4190b2b17ad6f…
Author: Owen Rudge <orudge(a)codeweavers.com> Date: Wed Dec 16 11:22:28 2009 -0600 mapi32: Correct the Simple MAPI parameters. --- dlls/mapi32/mapi32.spec | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dlls/mapi32/mapi32.spec b/dlls/mapi32/mapi32.spec index 04be363..8037c9b 100644 --- a/dlls/mapi32/mapi32.spec +++ b/dlls/mapi32/mapi32.spec @@ -145,17 +145,17 @@ 205 stub FDecodeID@12 206 stub CchOfEncoding@4 207 stdcall CbOfEncoded@4(ptr) CbOfEncoded -208 stdcall MAPISendDocuments(ptr ptr ptr ptr long) -209 stdcall MAPILogon(long ptr ptr long long ptr) -210 stdcall MAPILogoff(long long long long) -211 stdcall MAPISendMail(long long ptr long long) -212 stdcall MAPISaveMail(ptr ptr ptr long long ptr) -213 stdcall MAPIReadMail(ptr ptr ptr long long ptr) -214 stdcall MAPIFindNext(ptr ptr ptr ptr long long ptr) -215 stdcall MAPIDeleteMail(ptr ptr ptr long long) -217 stdcall MAPIAddress(ptr ptr ptr long ptr long long ptr long ptr ptr) +208 stdcall MAPISendDocuments(ptr str str str long) +209 stdcall MAPILogon(ptr str str long long ptr) +210 stdcall MAPILogoff(ptr ptr long long) +211 stdcall MAPISendMail(ptr ptr ptr long long) +212 stdcall MAPISaveMail(ptr ptr ptr long long str) +213 stdcall MAPIReadMail(ptr ptr str long long ptr) +214 stdcall MAPIFindNext(ptr ptr str str long long ptr) +215 stdcall MAPIDeleteMail(ptr ptr str long long) +217 stdcall MAPIAddress(ptr ptr str long str long ptr long long ptr ptr) 218 stdcall MAPIDetails(ptr ptr ptr long long) -219 stdcall MAPIResolveName(ptr ptr ptr long long ptr) +219 stdcall MAPIResolveName(ptr ptr str long long ptr) 220 stub BMAPISendMail 221 stub BMAPISaveMail 222 stub BMAPIReadMail
1
0
0
0
Owen Rudge : include: Redefine LHANDLE as ULONG_PTR.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 4c8bd544e14c170aa94c3d7c85e12960c91d1ec8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4c8bd544e14c170aa94c3d7c8…
Author: Owen Rudge <orudge(a)codeweavers.com> Date: Wed Dec 16 10:44:20 2009 -0600 include: Redefine LHANDLE as ULONG_PTR. --- dlls/mapi32/sendmail.c | 2 +- include/mapi.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/mapi32/sendmail.c b/dlls/mapi32/sendmail.c index cbbff98..6f1d554 100644 --- a/dlls/mapi32/sendmail.c +++ b/dlls/mapi32/sendmail.c @@ -402,7 +402,7 @@ ULONG WINAPI MAPISendMail( LHANDLE session, ULONG_PTR uiparam, HRESULT res; DWORD size; - TRACE( "(0x%08x 0x%08lx %p 0x%08x 0x%08x)\n", session, uiparam, + TRACE( "(0x%08lx 0x%08lx %p 0x%08x 0x%08x)\n", session, uiparam, message, flags, reserved ); /* Check to see if we have a Simple MAPI provider loaded */ diff --git a/include/mapi.h b/include/mapi.h index 2d335ea..7d19734 100644 --- a/include/mapi.h +++ b/include/mapi.h @@ -27,7 +27,7 @@ extern "C" { #ifndef __LHANDLE #define __LHANDLE -typedef ULONG LHANDLE, *LPLHANDLE; +typedef ULONG_PTR LHANDLE, *LPLHANDLE; #endif #define lhSessionNull ((LHANDLE)0)
1
0
0
0
Alexandre Julliard : user32: Pre-allocate the window procedure for DefWindowProc.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 1b2ea8b2e9b4ed9c0a185aafefa83ecb394ac06d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1b2ea8b2e9b4ed9c0a185aafe…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 17 13:01:42 2009 +0100 user32: Pre-allocate the window procedure for DefWindowProc. --- dlls/user32/class.c | 3 --- dlls/user32/controls.h | 1 + dlls/user32/winproc.c | 20 +++++--------------- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/dlls/user32/class.c b/dlls/user32/class.c index 3c211db..e8ca0e5 100644 --- a/dlls/user32/class.c +++ b/dlls/user32/class.c @@ -423,9 +423,6 @@ void CLASS_RegisterBuiltinClasses(void) register_builtin( &MESSAGE_builtin_class ); register_builtin( &SCROLL_builtin_class ); register_builtin( &STATIC_builtin_class ); - - /* the DefWindowProc winprocs are magic too */ - WINPROC_AllocProc( DefWindowProcA, DefWindowProcW ); } diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h index 2df4f45..9abc997 100644 --- a/dlls/user32/controls.h +++ b/dlls/user32/controls.h @@ -35,6 +35,7 @@ enum builtin_winprocs { WINPROC_BUTTON = 0, WINPROC_COMBO, + WINPROC_DEFWND, WINPROC_DIALOG, WINPROC_EDIT, WINPROC_LISTBOX, diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c index d71dca2..5bfd407 100644 --- a/dlls/user32/winproc.c +++ b/dlls/user32/winproc.c @@ -45,7 +45,6 @@ typedef struct tagWINDOWPROC } WINDOWPROC; #define MAX_WINPROCS 4096 -#define BUILTIN_WINPROCS 9 /* first BUILTIN_WINPROCS entries are reserved for builtin procs */ #define MAX_WINPROC_RECURSION 64 #define WINPROC_PROC16 ((WINDOWPROC *)1) /* placeholder for 16-bit window procs */ @@ -68,6 +67,7 @@ static WINDOWPROC winproc_array[MAX_WINPROCS] = { { ButtonWndProcA, ButtonWndProcW }, /* WINPROC_BUTTON */ { ComboWndProcA, ComboWndProcW }, /* WINPROC_COMBO */ + { DefWindowProcA, DefWindowProcW }, /* WINPROC_DEFWND */ { DefDlgProcA, DefDlgProcW }, /* WINPROC_DIALOG */ { EditWndProcA, EditWndProcW }, /* WINPROC_EDIT */ { ListBoxWndProcA, ListBoxWndProcW }, /* WINPROC_LISTBOX */ @@ -76,8 +76,7 @@ static WINDOWPROC winproc_array[MAX_WINPROCS] = { StaticWndProcA, StaticWndProcW }, /* WINPROC_STATIC */ }; -static UINT builtin_used = NB_BUILTIN_WINPROCS; -static UINT winproc_used = BUILTIN_WINPROCS; +static UINT winproc_used = NB_BUILTIN_WINPROCS; static CRITICAL_SECTION winproc_cs; static CRITICAL_SECTION_DEBUG critsect_debug = @@ -105,14 +104,14 @@ static inline WINDOWPROC *find_winproc( WNDPROC funcA, WNDPROC funcW ) { unsigned int i; - for (i = 0; i < builtin_used; i++) + for (i = 0; i < NB_BUILTIN_WINPROCS; i++) { /* match either proc, some apps confuse A and W */ if (funcA && winproc_array[i].procA != funcA && winproc_array[i].procW != funcA) continue; if (funcW && winproc_array[i].procA != funcW && winproc_array[i].procW != funcW) continue; return &winproc_array[i]; } - for (i = BUILTIN_WINPROCS; i < winproc_used; i++) + for (i = NB_BUILTIN_WINPROCS; i < winproc_used; i++) { if (funcA && winproc_array[i].procA != funcA) continue; if (funcW && winproc_array[i].procW != funcW) continue; @@ -153,16 +152,7 @@ static inline WINDOWPROC *alloc_winproc( WNDPROC funcA, WNDPROC funcW ) /* check if we already have a winproc for that function */ if (!(proc = find_winproc( funcA, funcW ))) { - if (funcA && funcW) - { - assert( builtin_used < BUILTIN_WINPROCS ); - proc = &winproc_array[builtin_used++]; - proc->procA = funcA; - proc->procW = funcW; - TRACE( "allocated %p for builtin %p/%p (%d/%d used)\n", - proc_to_handle(proc), funcA, funcW, builtin_used, BUILTIN_WINPROCS ); - } - else if (winproc_used < MAX_WINPROCS) + if (winproc_used < MAX_WINPROCS) { proc = &winproc_array[winproc_used++]; proc->procA = funcA;
1
0
0
0
Alexandre Julliard : user32: Pre-allocate the window procedure for the MDI client class.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 53393b0f1c88a33923d30a98d1b65d5130761f65 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=53393b0f1c88a33923d30a98d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 17 13:01:11 2009 +0100 user32: Pre-allocate the window procedure for the MDI client class. --- dlls/user32/controls.h | 1 + dlls/user32/mdi.c | 24 ++---------------------- dlls/user32/winproc.c | 13 +++++++++++++ 3 files changed, 16 insertions(+), 22 deletions(-) diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h index 35be645..2df4f45 100644 --- a/dlls/user32/controls.h +++ b/dlls/user32/controls.h @@ -38,6 +38,7 @@ enum builtin_winprocs WINPROC_DIALOG, WINPROC_EDIT, WINPROC_LISTBOX, + WINPROC_MDICLIENT, WINPROC_SCROLLBAR, WINPROC_STATIC, NB_BUILTIN_WINPROCS diff --git a/dlls/user32/mdi.c b/dlls/user32/mdi.c index e1910f8..fcfbd27 100644 --- a/dlls/user32/mdi.c +++ b/dlls/user32/mdi.c @@ -150,8 +150,6 @@ static LONG MDI_ChildActivate( HWND, HWND ); static LRESULT MDI_RefreshMenu(MDICLIENTINFO *); static HWND MDI_MoreWindowsDialog(HWND); -static LRESULT WINAPI MDIClientWndProcA( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ); -static LRESULT WINAPI MDIClientWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ); /* -------- Miscellaneous service functions ---------- * @@ -188,8 +186,8 @@ const struct builtin_class_descr MDICLIENT_builtin_class = { mdiclientW, /* name */ 0, /* style */ - MDIClientWndProcA, /* procA */ - MDIClientWndProcW, /* procW */ + NULL, /* procA */ + BUILTIN_WINPROC(WINPROC_MDICLIENT), /* procW */ sizeof(MDICLIENTINFO), /* extra */ IDC_ARROW, /* cursor */ (HBRUSH)(COLOR_APPWORKSPACE+1) /* brush */ @@ -1272,24 +1270,6 @@ LRESULT MDIClientWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM } /*********************************************************************** - * MDIClientWndProcA - */ -static LRESULT WINAPI MDIClientWndProcA( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ) -{ - if (!IsWindow(hwnd)) return 0; - return wow_handlers.mdiclient_proc( hwnd, message, wParam, lParam, FALSE ); -} - -/*********************************************************************** - * MDIClientWndProcW - */ -static LRESULT WINAPI MDIClientWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ) -{ - if (!IsWindow(hwnd)) return 0; - return wow_handlers.mdiclient_proc( hwnd, message, wParam, lParam, TRUE ); -} - -/*********************************************************************** * DefFrameProcA (USER32.@) */ LRESULT WINAPI DefFrameProcA( HWND hwnd, HWND hwndMDIClient, diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c index 89a1ae9..d71dca2 100644 --- a/dlls/user32/winproc.c +++ b/dlls/user32/winproc.c @@ -57,6 +57,8 @@ LRESULT WINAPI EditWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) static LRESULT WINAPI EditWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI ListBoxWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI ListBoxWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); +static LRESULT WINAPI MDIClientWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); +static LRESULT WINAPI MDIClientWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI ScrollBarWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI ScrollBarWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI StaticWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); @@ -69,6 +71,7 @@ static WINDOWPROC winproc_array[MAX_WINPROCS] = { DefDlgProcA, DefDlgProcW }, /* WINPROC_DIALOG */ { EditWndProcA, EditWndProcW }, /* WINPROC_EDIT */ { ListBoxWndProcA, ListBoxWndProcW }, /* WINPROC_LISTBOX */ + { MDIClientWndProcA, MDIClientWndProcW }, /* WINPROC_MDICLIENT */ { ScrollBarWndProcA, ScrollBarWndProcW }, /* WINPROC_SCROLLBAR */ { StaticWndProcA, StaticWndProcW }, /* WINPROC_STATIC */ }; @@ -1096,6 +1099,16 @@ static LRESULT WINAPI ListBoxWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARA return wow_handlers.listbox_proc( hwnd, msg, wParam, lParam, TRUE ); } +static LRESULT WINAPI MDIClientWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) +{ + return wow_handlers.mdiclient_proc( hwnd, msg, wParam, lParam, FALSE ); +} + +static LRESULT WINAPI MDIClientWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) +{ + return wow_handlers.mdiclient_proc( hwnd, msg, wParam, lParam, TRUE ); +} + static LRESULT WINAPI ScrollBarWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) { return wow_handlers.scrollbar_proc( hwnd, msg, wParam, lParam, FALSE );
1
0
0
0
Alexandre Julliard : user32: Pre-allocate the window procedure for the dialog class.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 0cbf191add364fddd669d39793d3f0950a14e5b9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0cbf191add364fddd669d3979…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 17 13:00:23 2009 +0100 user32: Pre-allocate the window procedure for the dialog class. --- dlls/user32/controls.h | 1 + dlls/user32/dialog.c | 4 ++-- dlls/user32/winproc.c | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h index 72a65a0..35be645 100644 --- a/dlls/user32/controls.h +++ b/dlls/user32/controls.h @@ -35,6 +35,7 @@ enum builtin_winprocs { WINPROC_BUTTON = 0, WINPROC_COMBO, + WINPROC_DIALOG, WINPROC_EDIT, WINPROC_LISTBOX, WINPROC_SCROLLBAR, diff --git a/dlls/user32/dialog.c b/dlls/user32/dialog.c index b6989a6..1309c09 100644 --- a/dlls/user32/dialog.c +++ b/dlls/user32/dialog.c @@ -97,8 +97,8 @@ const struct builtin_class_descr DIALOG_builtin_class = { (LPCWSTR)DIALOG_CLASS_ATOM, /* name */ CS_SAVEBITS | CS_DBLCLKS, /* style */ - DefDlgProcA, /* procA */ - DefDlgProcW, /* procW */ + NULL, /* procA */ + BUILTIN_WINPROC(WINPROC_DIALOG), /* procW */ DLGWINDOWEXTRA, /* extra */ IDC_ARROW, /* cursor */ 0 /* brush */ diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c index d2e75a1..89a1ae9 100644 --- a/dlls/user32/winproc.c +++ b/dlls/user32/winproc.c @@ -66,6 +66,7 @@ static WINDOWPROC winproc_array[MAX_WINPROCS] = { { ButtonWndProcA, ButtonWndProcW }, /* WINPROC_BUTTON */ { ComboWndProcA, ComboWndProcW }, /* WINPROC_COMBO */ + { DefDlgProcA, DefDlgProcW }, /* WINPROC_DIALOG */ { EditWndProcA, EditWndProcW }, /* WINPROC_EDIT */ { ListBoxWndProcA, ListBoxWndProcW }, /* WINPROC_LISTBOX */ { ScrollBarWndProcA, ScrollBarWndProcW }, /* WINPROC_SCROLLBAR */
1
0
0
0
Alexandre Julliard : user32: Pre-allocate the window procedure for the static class.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 80a09a7899e6e91981c9fc8bdbc9fafbb8284437 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=80a09a7899e6e91981c9fc8bd…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 17 13:00:04 2009 +0100 user32: Pre-allocate the window procedure for the static class. --- dlls/user32/controls.h | 1 + dlls/user32/static.c | 26 ++++---------------------- dlls/user32/winproc.c | 13 +++++++++++++ 3 files changed, 18 insertions(+), 22 deletions(-) diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h index 274e59f..72a65a0 100644 --- a/dlls/user32/controls.h +++ b/dlls/user32/controls.h @@ -38,6 +38,7 @@ enum builtin_winprocs WINPROC_EDIT, WINPROC_LISTBOX, WINPROC_SCROLLBAR, + WINPROC_STATIC, NB_BUILTIN_WINPROCS }; diff --git a/dlls/user32/static.c b/dlls/user32/static.c index b33033a..0f778bb 100644 --- a/dlls/user32/static.c +++ b/dlls/user32/static.c @@ -60,8 +60,6 @@ static void STATIC_PaintIconfn( HWND hwnd, HDC hdc, DWORD style ); static void STATIC_PaintBitmapfn( HWND hwnd, HDC hdc, DWORD style ); static void STATIC_PaintEnhMetafn( HWND hwnd, HDC hdc, DWORD style ); static void STATIC_PaintEtchedfn( HWND hwnd, HDC hdc, DWORD style ); -static LRESULT WINAPI StaticWndProcA( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); -static LRESULT WINAPI StaticWndProcW( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); static COLORREF color_3dshadow, color_3ddkshadow, color_3dhighlight; @@ -104,8 +102,8 @@ const struct builtin_class_descr STATIC_builtin_class = { staticW, /* name */ CS_DBLCLKS | CS_PARENTDC, /* style */ - StaticWndProcA, /* procA */ - StaticWndProcW, /* procW */ + NULL, /* procA */ + BUILTIN_WINPROC(WINPROC_STATIC), /* procW */ STATIC_EXTRA_BYTES, /* extra */ IDC_ARROW, /* cursor */ 0 /* brush */ @@ -405,6 +403,8 @@ LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam LONG full_style = GetWindowLongW( hwnd, GWL_STYLE ); LONG style = full_style & SS_TYPEMASK; + if (!IsWindow( hwnd )) return 0; + switch (uMsg) { case WM_CREATE: @@ -604,24 +604,6 @@ LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam return lResult; } -/*********************************************************************** - * StaticWndProcA - */ -static LRESULT WINAPI StaticWndProcA( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) -{ - if (!IsWindow( hWnd )) return 0; - return wow_handlers.static_proc(hWnd, uMsg, wParam, lParam, FALSE); -} - -/*********************************************************************** - * StaticWndProcW - */ -static LRESULT WINAPI StaticWndProcW( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) -{ - if (!IsWindow( hWnd )) return 0; - return wow_handlers.static_proc(hWnd, uMsg, wParam, lParam, TRUE); -} - static void STATIC_PaintOwnerDrawfn( HWND hwnd, HDC hdc, DWORD style ) { DRAWITEMSTRUCT dis; diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c index c9ed557..d2e75a1 100644 --- a/dlls/user32/winproc.c +++ b/dlls/user32/winproc.c @@ -59,6 +59,8 @@ static LRESULT WINAPI ListBoxWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARA static LRESULT WINAPI ListBoxWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI ScrollBarWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI ScrollBarWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); +static LRESULT WINAPI StaticWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); +static LRESULT WINAPI StaticWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static WINDOWPROC winproc_array[MAX_WINPROCS] = { @@ -67,6 +69,7 @@ static WINDOWPROC winproc_array[MAX_WINPROCS] = { EditWndProcA, EditWndProcW }, /* WINPROC_EDIT */ { ListBoxWndProcA, ListBoxWndProcW }, /* WINPROC_LISTBOX */ { ScrollBarWndProcA, ScrollBarWndProcW }, /* WINPROC_SCROLLBAR */ + { StaticWndProcA, StaticWndProcW }, /* WINPROC_STATIC */ }; static UINT builtin_used = NB_BUILTIN_WINPROCS; @@ -1102,6 +1105,16 @@ static LRESULT WINAPI ScrollBarWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPA return wow_handlers.scrollbar_proc( hwnd, msg, wParam, lParam, TRUE ); } +static LRESULT WINAPI StaticWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) +{ + return wow_handlers.static_proc( hwnd, msg, wParam, lParam, FALSE ); +} + +static LRESULT WINAPI StaticWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) +{ + return wow_handlers.static_proc( hwnd, msg, wParam, lParam, TRUE ); +} + /********************************************************************** * UserRegisterWowHandlers (USER32.@)
1
0
0
0
Alexandre Julliard : user32: Pre-allocate the window procedure for the scrollbar class.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 1e43d19753c95bf50a58082700ea18f5632742cc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1e43d19753c95bf50a5808270…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 17 12:59:40 2009 +0100 user32: Pre-allocate the window procedure for the scrollbar class. --- dlls/user32/controls.h | 1 + dlls/user32/scroll.c | 24 ++---------------------- dlls/user32/winproc.c | 21 +++++++++++++++++---- 3 files changed, 20 insertions(+), 26 deletions(-) diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h index d5760d6..274e59f 100644 --- a/dlls/user32/controls.h +++ b/dlls/user32/controls.h @@ -37,6 +37,7 @@ enum builtin_winprocs WINPROC_COMBO, WINPROC_EDIT, WINPROC_LISTBOX, + WINPROC_SCROLLBAR, NB_BUILTIN_WINPROCS }; diff --git a/dlls/user32/scroll.c b/dlls/user32/scroll.c index b948c82..13b5eaf 100644 --- a/dlls/user32/scroll.c +++ b/dlls/user32/scroll.c @@ -114,8 +114,6 @@ static void SCROLL_DrawInterior_9x( HWND hwnd, HDC hdc, INT nBar, INT thumbSize, INT thumbPos, UINT flags, BOOL vertical, BOOL top_selected, BOOL bottom_selected ); -static LRESULT WINAPI ScrollBarWndProcA( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); -static LRESULT WINAPI ScrollBarWndProcW( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); /********************************************************************* @@ -126,8 +124,8 @@ const struct builtin_class_descr SCROLL_builtin_class = { scrollbarW, /* name */ CS_DBLCLKS | CS_VREDRAW | CS_HREDRAW | CS_PARENTDC, /* style */ - ScrollBarWndProcA, /* procA */ - ScrollBarWndProcW, /* procW */ + NULL, /* procA */ + BUILTIN_WINPROC(WINPROC_SCROLLBAR), /* procW */ sizeof(SCROLLBAR_INFO), /* extra */ IDC_ARROW, /* cursor */ 0 /* brush */ @@ -1574,24 +1572,6 @@ LRESULT ScrollBarWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM } -/*********************************************************************** - * ScrollBarWndProcA - */ -static LRESULT WINAPI ScrollBarWndProcA( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ) -{ - return wow_handlers.scrollbar_proc( hwnd, message, wParam, lParam, FALSE ); -} - - -/*********************************************************************** - * ScrollBarWndProcW - */ -static LRESULT WINAPI ScrollBarWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ) -{ - return wow_handlers.scrollbar_proc( hwnd, message, wParam, lParam, TRUE ); -} - - /************************************************************************* * SetScrollInfo (USER32.@) * diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c index 96c4749..c9ed557 100644 --- a/dlls/user32/winproc.c +++ b/dlls/user32/winproc.c @@ -57,13 +57,16 @@ LRESULT WINAPI EditWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) static LRESULT WINAPI EditWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI ListBoxWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI ListBoxWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); +static LRESULT WINAPI ScrollBarWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); +static LRESULT WINAPI ScrollBarWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static WINDOWPROC winproc_array[MAX_WINPROCS] = { - { ButtonWndProcA, ButtonWndProcW }, /* WINPROC_BUTTON */ - { ComboWndProcA, ComboWndProcW }, /* WINPROC_COMBO */ - { EditWndProcA, EditWndProcW }, /* WINPROC_EDIT */ - { ListBoxWndProcA, ListBoxWndProcW },/* WINPROC_LISTBOX */ + { ButtonWndProcA, ButtonWndProcW }, /* WINPROC_BUTTON */ + { ComboWndProcA, ComboWndProcW }, /* WINPROC_COMBO */ + { EditWndProcA, EditWndProcW }, /* WINPROC_EDIT */ + { ListBoxWndProcA, ListBoxWndProcW }, /* WINPROC_LISTBOX */ + { ScrollBarWndProcA, ScrollBarWndProcW }, /* WINPROC_SCROLLBAR */ }; static UINT builtin_used = NB_BUILTIN_WINPROCS; @@ -1089,6 +1092,16 @@ static LRESULT WINAPI ListBoxWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARA return wow_handlers.listbox_proc( hwnd, msg, wParam, lParam, TRUE ); } +static LRESULT WINAPI ScrollBarWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) +{ + return wow_handlers.scrollbar_proc( hwnd, msg, wParam, lParam, FALSE ); +} + +static LRESULT WINAPI ScrollBarWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) +{ + return wow_handlers.scrollbar_proc( hwnd, msg, wParam, lParam, TRUE ); +} + /********************************************************************** * UserRegisterWowHandlers (USER32.@)
1
0
0
0
Alexandre Julliard : user32: Pre-allocate the window procedure for the listbox class.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: c0f3f5a1d254c8093077c94afe71323b61ad7b65 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c0f3f5a1d254c8093077c94af…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 17 12:58:45 2009 +0100 user32: Pre-allocate the window procedure for the listbox class. --- dlls/user32/controls.h | 1 + dlls/user32/listbox.c | 27 ++++----------------------- dlls/user32/winproc.c | 13 +++++++++++++ 3 files changed, 18 insertions(+), 23 deletions(-) diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h index 8325d8d..d5760d6 100644 --- a/dlls/user32/controls.h +++ b/dlls/user32/controls.h @@ -36,6 +36,7 @@ enum builtin_winprocs WINPROC_BUTTON = 0, WINPROC_COMBO, WINPROC_EDIT, + WINPROC_LISTBOX, NB_BUILTIN_WINPROCS }; diff --git a/dlls/user32/listbox.c b/dlls/user32/listbox.c index 50fc762..4bc9664 100644 --- a/dlls/user32/listbox.c +++ b/dlls/user32/listbox.c @@ -128,9 +128,6 @@ typedef enum static TIMER_DIRECTION LISTBOX_Timer = LB_TIMER_NONE; -static LRESULT WINAPI ListBoxWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); -static LRESULT WINAPI ListBoxWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); - static LRESULT LISTBOX_GetItemRect( const LB_DESCR *descr, INT index, RECT *rect ); /********************************************************************* @@ -141,8 +138,8 @@ const struct builtin_class_descr LISTBOX_builtin_class = { listboxW, /* name */ CS_DBLCLKS /*| CS_PARENTDC*/, /* style */ - ListBoxWndProcA, /* procA */ - ListBoxWndProcW, /* procW */ + NULL, /* procA */ + BUILTIN_WINPROC(WINPROC_LISTBOX), /* procW */ sizeof(LB_DESCR *), /* extra */ IDC_ARROW, /* cursor */ 0 /* brush */ @@ -157,8 +154,8 @@ const struct builtin_class_descr COMBOLBOX_builtin_class = { combolboxW, /* name */ CS_DBLCLKS | CS_SAVEBITS, /* style */ - ListBoxWndProcA, /* procA */ - ListBoxWndProcW, /* procW */ + NULL, /* procA */ + BUILTIN_WINPROC(WINPROC_LISTBOX), /* procW */ sizeof(LB_DESCR *), /* extra */ IDC_ARROW, /* cursor */ 0 /* brush */ @@ -3179,19 +3176,3 @@ LRESULT ListBoxWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam return unicode ? DefWindowProcW( hwnd, msg, wParam, lParam ) : DefWindowProcA( hwnd, msg, wParam, lParam ); } - -/*********************************************************************** - * ListBoxWndProcA - */ -static LRESULT WINAPI ListBoxWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) -{ - return wow_handlers.listbox_proc( hwnd, msg, wParam, lParam, FALSE ); -} - -/*********************************************************************** - * ListBoxWndProcW - */ -static LRESULT WINAPI ListBoxWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) -{ - return wow_handlers.listbox_proc( hwnd, msg, wParam, lParam, TRUE ); -} diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c index d0b4e90..96c4749 100644 --- a/dlls/user32/winproc.c +++ b/dlls/user32/winproc.c @@ -55,12 +55,15 @@ static LRESULT WINAPI ComboWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM static LRESULT WINAPI ComboWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); LRESULT WINAPI EditWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI EditWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); +static LRESULT WINAPI ListBoxWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); +static LRESULT WINAPI ListBoxWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static WINDOWPROC winproc_array[MAX_WINPROCS] = { { ButtonWndProcA, ButtonWndProcW }, /* WINPROC_BUTTON */ { ComboWndProcA, ComboWndProcW }, /* WINPROC_COMBO */ { EditWndProcA, EditWndProcW }, /* WINPROC_EDIT */ + { ListBoxWndProcA, ListBoxWndProcW },/* WINPROC_LISTBOX */ }; static UINT builtin_used = NB_BUILTIN_WINPROCS; @@ -1076,6 +1079,16 @@ static LRESULT WINAPI EditWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM l return wow_handlers.edit_proc( hwnd, msg, wParam, lParam, TRUE ); } +static LRESULT WINAPI ListBoxWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) +{ + return wow_handlers.listbox_proc( hwnd, msg, wParam, lParam, FALSE ); +} + +static LRESULT WINAPI ListBoxWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) +{ + return wow_handlers.listbox_proc( hwnd, msg, wParam, lParam, TRUE ); +} + /********************************************************************** * UserRegisterWowHandlers (USER32.@)
1
0
0
0
Alexandre Julliard : user32: Get rid of the EDIT_winproc_handle variable.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 87ede8949aa18c67df433f5e16259949bb954a93 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=87ede8949aa18c67df433f5e1…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 17 12:58:08 2009 +0100 user32: Get rid of the EDIT_winproc_handle variable. --- dlls/user32/class.c | 7 +++---- dlls/user32/controls.h | 2 -- dlls/user32/win.c | 2 +- dlls/user32/winproc.c | 2 -- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/dlls/user32/class.c b/dlls/user32/class.c index f5cdaec..3c211db 100644 --- a/dlls/user32/class.c +++ b/dlls/user32/class.c @@ -391,18 +391,17 @@ static CLASS *CLASS_RegisterClass( LPCWSTR name, HINSTANCE hInstance, BOOL local * Register a builtin control class. * This allows having both ASCII and Unicode winprocs for the same class. */ -static WNDPROC register_builtin( const struct builtin_class_descr *descr ) +static void register_builtin( const struct builtin_class_descr *descr ) { CLASS *classPtr; if (!(classPtr = CLASS_RegisterClass( descr->name, user32_module, FALSE, - descr->style, 0, descr->extra ))) return 0; + descr->style, 0, descr->extra ))) return; classPtr->hCursor = LoadCursorA( 0, (LPSTR)descr->cursor ); classPtr->hbrBackground = descr->brush; classPtr->winproc = WINPROC_AllocProc( descr->procA, descr->procW ); release_class_ptr( classPtr ); - return classPtr->winproc; } @@ -416,7 +415,7 @@ void CLASS_RegisterBuiltinClasses(void) register_builtin( &COMBO_builtin_class ); register_builtin( &COMBOLBOX_builtin_class ); register_builtin( &DIALOG_builtin_class ); - EDIT_winproc_handle = register_builtin( &EDIT_builtin_class ); + register_builtin( &EDIT_builtin_class ); register_builtin( &ICONTITLE_builtin_class ); register_builtin( &LISTBOX_builtin_class ); register_builtin( &MDICLIENT_builtin_class ); diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h index 37b9bc5..8325d8d 100644 --- a/dlls/user32/controls.h +++ b/dlls/user32/controls.h @@ -109,8 +109,6 @@ extern void register_wow_handlers(void) DECLSPEC_HIDDEN; extern void WINAPI UserRegisterWowHandlers( const struct wow_handlers16 *new, struct wow_handlers32 *orig ); -extern WNDPROC EDIT_winproc_handle DECLSPEC_HIDDEN; - /* Class functions */ struct tagCLASS; /* opaque structure */ struct tagWND; diff --git a/dlls/user32/win.c b/dlls/user32/win.c index bb19a4e..dbb8ef2 100644 --- a/dlls/user32/win.c +++ b/dlls/user32/win.c @@ -2081,7 +2081,7 @@ static LONG_PTR WIN_GetWindowLong( HWND hwnd, INT offset, UINT size, BOOL unicod * more tolerant to A/W mismatches. The lack of W->A->W conversion for such a mismatch suggests * that the hack is in GetWindowLongPtr[AW], not in winprocs. */ - if (wndPtr->winproc == EDIT_winproc_handle && (!unicode != !(wndPtr->flags & WIN_ISUNICODE))) + if (wndPtr->winproc == BUILTIN_WINPROC(WINPROC_EDIT) && (!unicode != !(wndPtr->flags & WIN_ISUNICODE))) retvalue = (ULONG_PTR)wndPtr->winproc; else retvalue = (ULONG_PTR)WINPROC_GetProc( wndPtr->winproc, unicode ); diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c index a21b4f0..d0b4e90 100644 --- a/dlls/user32/winproc.c +++ b/dlls/user32/winproc.c @@ -49,8 +49,6 @@ typedef struct tagWINDOWPROC #define MAX_WINPROC_RECURSION 64 #define WINPROC_PROC16 ((WINDOWPROC *)1) /* placeholder for 16-bit window procs */ -WNDPROC EDIT_winproc_handle = 0; - static LRESULT WINAPI ButtonWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI ButtonWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI ComboWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
1
0
0
0
Alexandre Julliard : user32: Pre-allocate the window procedure for the edit class.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 6400dabf40ab2015141732c38fab9558fa6836bc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6400dabf40ab2015141732c38…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 17 12:57:40 2009 +0100 user32: Pre-allocate the window procedure for the edit class. --- dlls/user32/controls.h | 1 + dlls/user32/edit.c | 22 ++-------------------- dlls/user32/winproc.c | 13 +++++++++++++ 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h index 76c714c..37b9bc5 100644 --- a/dlls/user32/controls.h +++ b/dlls/user32/controls.h @@ -35,6 +35,7 @@ enum builtin_winprocs { WINPROC_BUTTON = 0, WINPROC_COMBO, + WINPROC_EDIT, NB_BUILTIN_WINPROCS }; diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c index a2ce5f1..3466002 100644 --- a/dlls/user32/edit.c +++ b/dlls/user32/edit.c @@ -4971,24 +4971,6 @@ LRESULT EditWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, B /********************************************************************* - * - * EditWndProc (USER32.@) - */ -LRESULT WINAPI EditWndProcA(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) -{ - return wow_handlers.edit_proc(hWnd, uMsg, wParam, lParam, FALSE); -} - -/********************************************************************* - * - * EditWndProcW - */ -static LRESULT WINAPI EditWndProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) -{ - return wow_handlers.edit_proc(hWnd, uMsg, wParam, lParam, TRUE); -} - -/********************************************************************* * edit class descriptor */ static const WCHAR editW[] = {'E','d','i','t',0}; @@ -4996,8 +4978,8 @@ const struct builtin_class_descr EDIT_builtin_class = { editW, /* name */ CS_DBLCLKS | CS_PARENTDC, /* style */ - EditWndProcA, /* procA */ - EditWndProcW, /* procW */ + NULL, /* procA */ + BUILTIN_WINPROC(WINPROC_EDIT), /* procW */ #ifdef __i386__ sizeof(EDITSTATE *) + sizeof(HLOCAL16), /* extra */ #else diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c index 32b94b4..a21b4f0 100644 --- a/dlls/user32/winproc.c +++ b/dlls/user32/winproc.c @@ -55,11 +55,14 @@ static LRESULT WINAPI ButtonWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM static LRESULT WINAPI ButtonWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI ComboWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI ComboWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); +LRESULT WINAPI EditWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); +static LRESULT WINAPI EditWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static WINDOWPROC winproc_array[MAX_WINPROCS] = { { ButtonWndProcA, ButtonWndProcW }, /* WINPROC_BUTTON */ { ComboWndProcA, ComboWndProcW }, /* WINPROC_COMBO */ + { EditWndProcA, EditWndProcW }, /* WINPROC_EDIT */ }; static UINT builtin_used = NB_BUILTIN_WINPROCS; @@ -1065,6 +1068,16 @@ static LRESULT WINAPI ComboWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPA return wow_handlers.combo_proc( hwnd, message, wParam, lParam, TRUE ); } +LRESULT WINAPI EditWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) +{ + return wow_handlers.edit_proc( hwnd, msg, wParam, lParam, FALSE ); +} + +static LRESULT WINAPI EditWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) +{ + return wow_handlers.edit_proc( hwnd, msg, wParam, lParam, TRUE ); +} + /********************************************************************** * UserRegisterWowHandlers (USER32.@)
1
0
0
0
← Newer
1
...
41
42
43
44
45
46
47
...
124
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
Results per page:
10
25
50
100
200