Changeset 2033 for trunk/src/user32/win32dlg.cpp
- Timestamp:
- Dec 9, 1999, 1:54:05 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32dlg.cpp
r1762 r2033 1 /* $Id: win32dlg.cpp,v 1.3 5 1999-11-17 17:04:54 cbratschiExp $ */1 /* $Id: win32dlg.cpp,v 1.36 1999-12-09 00:53:37 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 18 18 #include <misc.h> 19 19 #include <win32dlg.h> 20 #include <win\winproc.h> 20 21 #include "oslibmsg.h" 21 22 #include "oslibwin.h" … … 174 175 175 176 fIsDialog = TRUE; 176 W in32DlgProc = dlgProc;177 WINPROC_SetProc((HWINDOWPROC *)&Win32DlgProc, (WNDPROC)dlgProc, (isUnicode) ? WIN_PROC_32W : WIN_PROC_32A, WIN_PROC_WINDOW); 177 178 178 179 this->tmpParam = param; … … 195 196 if (hUserFont) DeleteObject( hUserFont ); 196 197 if (hMenu) DestroyMenu( hMenu ); 198 199 WINPROC_FreeProc(Win32DlgProc, WIN_PROC_WINDOW); 197 200 } 198 201 //****************************************************************************** … … 1019 1022 //****************************************************************************** 1020 1023 //****************************************************************************** 1021 LONG Win32Dialog::SetWindowLongA(int index, ULONG value )1024 LONG Win32Dialog::SetWindowLongA(int index, ULONG value, BOOL fUnicode) 1022 1025 { 1023 1026 LONG oldval; … … 1027 1030 { 1028 1031 case DWL_DLGPROC: 1029 oldval = (LONG)Win32DlgProc;1030 W in32DlgProc = (DLGPROC)value;1032 oldval = (LONG)WINPROC_GetProc(Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 1033 WINPROC_SetProc((HWINDOWPROC *)&Win32DlgProc, (WNDPROC)value, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A, WIN_PROC_WINDOW); 1031 1034 return oldval; 1032 1035 case DWL_MSGRESULT: … … 1044 1047 //****************************************************************************** 1045 1048 //****************************************************************************** 1046 ULONG Win32Dialog::GetWindowLongA(int index )1049 ULONG Win32Dialog::GetWindowLongA(int index, BOOL fUnicode) 1047 1050 { 1048 1051 dprintf2(("Win32Dialog::GetWindowLongA %x %d", getWindowHandle(), index)); … … 1050 1053 { 1051 1054 case DWL_DLGPROC: 1052 return (ULONG)Win32DlgProc;1055 return (ULONG)WINPROC_GetProc(Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 1053 1056 case DWL_MSGRESULT: 1054 1057 return msgResult;
Note:
See TracChangeset
for help on using the changeset viewer.