Changeset 10602 for trunk/src/user32/windowmsg.cpp
- Timestamp:
- May 11, 2004, 11:08:20 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/windowmsg.cpp
r10439 r10602 1 /* $Id: windowmsg.cpp,v 1. 49 2004-02-04 14:59:57 birdExp $ */1 /* $Id: windowmsg.cpp,v 1.50 2004-05-11 09:08:20 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window message APIs for OS/2 … … 34 34 #define INCL_TIMERWIN32 35 35 #include "timer.h" 36 #include "callwrap.h" 36 37 37 38 #define DBG_LOCALLOG DBG_windowmsg … … 326 327 * @author knut st. osmundsen <bird-srcspam@anduin.net> 327 328 * @remark One cannot attach a threads input queue to it self. 329 * @remark This implemenation requires the thread which input is 'forwarded' to 330 * process it's message queue. Window (and wine) will not bother that thread 331 * at all with the messages. (DEADLOCK WARNING) 328 332 * @todo Not sure if all this is 100% ok according to the windows reality. 329 333 * I'm sure some error cases aren't caught. … … 1002 1006 if (WINPROC_MapMsg32ATo32W( hwnd, msg, &wParam, &lParam ) == -1) return 0; 1003 1007 1004 result = func(hwnd, msg, wParam, lParam );1008 result = WrapCallback4(func, hwnd, msg, wParam, lParam ); 1005 1009 WINPROC_UnmapMsg32ATo32W( hwnd, msg, wParam, lParam ); 1006 1010 … … 1013 1017 { 1014 1018 LPWSTR ustr = ( LPWSTR )HeapAlloc( GetProcessHeap(), 0, ( result + 1 ) * sizeof( WCHAR )); 1015 result = func(hwnd, WM_GETTEXT, ( WPARAM )( result + 1 ), ( LPARAM )ustr );1019 result = WrapCallback4(func, hwnd, WM_GETTEXT, ( WPARAM )( result + 1 ), ( LPARAM )ustr ); 1016 1020 result = lstrlenWtoA( ustr, result ); 1017 1021 HeapFree( GetProcessHeap(), 0, ustr ); … … 1022 1026 { 1023 1027 LPWSTR ustr = ( LPWSTR )HeapAlloc( GetProcessHeap(), 0, ( result + 1 ) * sizeof( WCHAR )); 1024 result = func(hwnd, LB_GETTEXT, wParam, ( LPARAM )ustr );1028 result = WrapCallback4(func, hwnd, LB_GETTEXT, wParam, ( LPARAM )ustr ); 1025 1029 if( result != LB_ERR ) 1026 1030 result = lstrlenWtoA( ustr, result ); … … 1034 1038 { 1035 1039 LPWSTR ustr = ( LPWSTR )HeapAlloc( GetProcessHeap(), 0, ( result + 1 ) * sizeof( WCHAR )); 1036 result = func(hwnd, CB_GETLBTEXT, wParam, ( LPARAM )ustr );1040 result = WrapCallback4(func, hwnd, CB_GETLBTEXT, wParam, ( LPARAM )ustr ); 1037 1041 if( result != CB_ERR ) 1038 1042 result = lstrlenWtoA( ustr, result ); … … 1060 1064 if (WINPROC_MapMsg32WTo32A( hwnd, msg, &wParam, &lParam ) == -1) return 0; 1061 1065 1062 result = func(hwnd, msg, wParam, lParam );1066 result = WrapCallback4(func, hwnd, msg, wParam, lParam ); 1063 1067 WINPROC_UnmapMsg32WTo32A( hwnd, msg, wParam, lParam ); 1064 1068 … … 1071 1075 { 1072 1076 LPSTR astr = ( LPSTR )HeapAlloc( GetProcessHeap(), 0, result + 1 ); 1073 result = func(hwnd, WM_GETTEXT, ( WPARAM )( result + 1 ), ( LPARAM )astr );1077 result = WrapCallback4(func, hwnd, WM_GETTEXT, ( WPARAM )( result + 1 ), ( LPARAM )astr ); 1074 1078 result = lstrlenAtoW( astr, result ); 1075 1079 HeapFree( GetProcessHeap(), 0, astr ); … … 1080 1084 { 1081 1085 LPSTR astr = ( LPSTR )HeapAlloc( GetProcessHeap(), 0, result + 1 ); 1082 result = func(hwnd, LB_GETTEXT, wParam, ( LPARAM )astr );1086 result = WrapCallback4(func, hwnd, LB_GETTEXT, wParam, ( LPARAM )astr ); 1083 1087 if( result != LB_ERR ) 1084 1088 result = lstrlenAtoW( astr, result ); … … 1092 1096 { 1093 1097 LPSTR astr = ( LPSTR )HeapAlloc( GetProcessHeap(), 0, result + 1 ); 1094 result = func(hwnd, CB_GETLBTEXT, wParam, ( LPARAM )astr );1098 result = WrapCallback4(func, hwnd, CB_GETLBTEXT, wParam, ( LPARAM )astr ); 1095 1099 if( result != CB_ERR ) 1096 1100 result = lstrlenAtoW( astr, result );
Note:
See TracChangeset
for help on using the changeset viewer.