Changeset 7241 for trunk/src/user32/win32dlg.cpp
- Timestamp:
- Oct 28, 2001, 11:38:14 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32dlg.cpp
r6019 r7241 1 /* $Id: win32dlg.cpp,v 1.7 0 2001-06-15 14:07:22sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.71 2001-10-28 10:38:13 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 1083 1083 dialogFlags |= DF_END; 1084 1084 idResult = retval; 1085 1085 1086 return TRUE; 1086 1087 } 1087 1088 //****************************************************************************** 1088 1089 //****************************************************************************** 1089 LONG Win32Dialog::SetWindowLong A(int index, ULONG value, BOOL fUnicode)1090 LONG Win32Dialog::SetWindowLong(int index, ULONG value, BOOL fUnicode) 1090 1091 { 1091 1092 LONG oldval; … … 1096 1097 case DWL_DLGPROC: 1097 1098 { 1098 //Note: Type of SetWindowLong determines new window proc type1099 //Note: Type of SetWindowLong determines new window proc type 1099 1100 // UNLESS the new window proc has already been registered 1100 1101 // (use the old type in that case) 1101 1102 // (VERIFIED in NT 4, SP6) 1102 1103 WINDOWPROCTYPE type = WINPROC_GetProcType((HWINDOWPROC)value); 1103 if(type == WIN_PROC_INVALID) {1104 type = (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A;1105 }1104 if(type == WIN_PROC_INVALID) { 1105 type = (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A; 1106 } 1106 1107 oldval = (LONG)WINPROC_GetProc(Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 1107 1108 WINPROC_SetProc((HWINDOWPROC *)&Win32DlgProc, (WNDPROC)value, type, WIN_PROC_WINDOW); … … 1117 1118 return oldval; 1118 1119 default: 1119 return Win32BaseWindow::SetWindowLong A(index, value);1120 } 1121 } 1122 //****************************************************************************** 1123 //****************************************************************************** 1124 ULONG Win32Dialog::GetWindowLong A(int index, BOOL fUnicode)1120 return Win32BaseWindow::SetWindowLong(index, value, fUnicode); 1121 } 1122 } 1123 //****************************************************************************** 1124 //****************************************************************************** 1125 ULONG Win32Dialog::GetWindowLong(int index, BOOL fUnicode) 1125 1126 { 1126 1127 dprintf2(("Win32Dialog::GetWindowLongA %x %d", getWindowHandle(), index)); … … 1134 1135 return userDlgData; 1135 1136 default: 1136 return Win32BaseWindow::GetWindowLong A(index);1137 return Win32BaseWindow::GetWindowLong(index, fUnicode); 1137 1138 } 1138 1139 }
Note:
See TracChangeset
for help on using the changeset viewer.