Changeset 19095
- Timestamp:
- Jun 2, 2002, 12:08:10 PM (23 years ago)
- Location:
- tags/trunk/src/user32
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/user32/Makefile ¶
r18603 r19095 1 # $Id: Makefile,v 1.10 2 2002-03-08 11:09:14sandervl Exp $1 # $Id: Makefile,v 1.103 2002-06-02 10:07:56 sandervl Exp $ 2 2 3 3 # … … 108 108 $(OBJDIR)\user32rsrc.obj \ 109 109 $(OBJDIR)\oslibprf.obj \ 110 $(OBJDIR)\dragdrop.obj \ 110 111 !ifdef DEBUG 111 112 $(OBJDIR)\dbgwrap.obj \ -
TabularUnified tags/trunk/src/user32/dbglocal.cpp ¶
r18439 r19095 1 /* $Id: dbglocal.cpp,v 1.1 1 2002-02-12 12:00:02sandervl Exp $ */1 /* $Id: dbglocal.cpp,v 1.12 2002-06-02 10:07:57 sandervl Exp $ */ 2 2 3 3 /* … … 93 93 "property", 94 94 "rect", 95 "paint" 95 "paint", 96 "dragdrop" 96 97 }; 97 98 //****************************************************************************** -
TabularUnified tags/trunk/src/user32/dbglocal.h ¶
r18430 r19095 1 /* $Id: dbglocal.h,v 1. 9 2002-02-11 16:46:00sandervl Exp $ */1 /* $Id: dbglocal.h,v 1.10 2002-06-02 10:07:57 sandervl Exp $ */ 2 2 3 3 /* … … 93 93 #define DBG_rect 71 94 94 #define DBG_paint 72 95 #define DBG_MAXFILES 73 95 #define DBG_dragdrop 73 96 #define DBG_MAXFILES 74 96 97 97 98 extern USHORT DbgEnabledUSER32[DBG_MAXFILES]; -
TabularUnified tags/trunk/src/user32/menu.cpp ¶
r19029 r19095 1 /* $Id: menu.cpp,v 1.4 6 2002-05-23 13:49:41sandervl Exp $*/1 /* $Id: menu.cpp,v 1.47 2002-06-02 10:07:57 sandervl Exp $*/ 2 2 /* 3 3 * Menu functions … … 4281 4281 4282 4282 if (!hrsrc) return 0; 4283 return LoadMenuIndirectA( ( MENUITEMTEMPLATEHEADER*)LoadResource( instance, hrsrc ));4283 return LoadMenuIndirectA( (LPCVOID)LoadResource( instance, hrsrc )); 4284 4284 } 4285 4285 … … 4295 4295 4296 4296 if (!hrsrc) return 0; 4297 return LoadMenuIndirectW( ( MENUITEMTEMPLATEHEADER*)LoadResource( instance, hrsrc ));4297 return LoadMenuIndirectW( (LPCVOID)LoadResource( instance, hrsrc )); 4298 4298 } 4299 4299 … … 4302 4302 * LoadMenuIndirect32A (USER32.371) 4303 4303 */ 4304 HMENU WINAPI LoadMenuIndirectA( CONST MENUITEMTEMPLATEHEADER *lpMenuTemplate)4304 HMENU WINAPI LoadMenuIndirectA(LPCVOID lpMenuTemplate) 4305 4305 { 4306 4306 HMENU hMenu; … … 4345 4345 * LoadMenuIndirect32W (USER32.372) 4346 4346 */ 4347 HMENU WINAPI LoadMenuIndirectW( CONST MENUITEMTEMPLATEHEADER *lpMenuTemplate )4347 HMENU WINAPI LoadMenuIndirectW(LPCVOID lpMenuTemplate ) 4348 4348 { 4349 4349 dprintf(("USER32: LoadMenuIndirectW")); -
TabularUnified tags/trunk/src/user32/pmwindow.cpp ¶
r19094 r19095 1 /* $Id: pmwindow.cpp,v 1.17 4 2002-06-01 17:26:30sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.175 2002-06-02 10:07:57 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 51 51 #include <winscan.h> 52 52 #include <win\dbt.h> 53 #include "dragdrop.h" 53 54 54 55 #define DBG_LOCALLOG DBG_pmwindow … … 796 797 797 798 //does this window accept dropped files? 798 if(! win32wnd->AcceptsDropFiles()) {799 if(!DragDropAccept(win32wnd->getWindowHandle())) { 799 800 rc = (MRFROM2SHORT (DOR_NEVERDROP, 0)); 800 801 break; … … 889 890 890 891 //does this window accept dropped files? 891 if(! win32wnd->AcceptsDropFiles()) {892 if(!DragDropAccept(win32wnd->getWindowHandle())) { 892 893 rc = 0; 893 894 break; … … 943 944 } 944 945 POINT point = {sxDrop, syDrop}; 945 win32wnd->MsgDropFiles(cItems, point, pszFiles, bufsize);946 DragDropFiles(win32wnd->getWindowHandle(), cItems, point, pszFiles, bufsize); 946 947 free(pszFiles); 947 948 -
TabularUnified tags/trunk/src/user32/win32wbase.cpp ¶
r19094 r19095 1 /* $Id: win32wbase.cpp,v 1.32 5 2002-06-01 17:26:31sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.326 2002-06-02 10:07:58 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 1268 1268 //****************************************************************************** 1269 1269 //****************************************************************************** 1270 ULONG Win32BaseWindow::MsgDropFiles(UINT cFiles, POINT point, LPSTR pszFiles, UINT cbszFiles, BOOL fNonClient)1271 {1272 DROPFILES *pDropFile;1273 HGLOBAL hDropFile;1274 HWND hwnd;1275 1276 hwnd = (getExStyle() & WS_EX_ACCEPTFILES) ? getWindowHandle() : ::GetParent(getWindowHandle());1277 cbszFiles++; //extra terminating 01278 1279 if(::IsWindowUnicode(hwnd)) {1280 dprintf(("unicode dropfiles"));1281 cbszFiles *= 2;1282 }1283 1284 hDropFile = GlobalAlloc(0, sizeof(DROPFILES)+cbszFiles);1285 pDropFile = (DROPFILES *)GlobalLock(hDropFile);1286 if(pDropFile == NULL) {1287 DebugInt3();1288 return 0;1289 }1290 pDropFile->pFiles = sizeof(DROPFILES);1291 pDropFile->fNC = fNonClient;1292 pDropFile->fWide = ::IsWindowUnicode(hwnd);1293 pDropFile->pt = point;1294 if(::IsWindowUnicode(hwnd)) {1295 LPWSTR lpszFilesW = (LPWSTR)(pDropFile+1);1296 while(*pszFiles) {1297 int len = strlen(pszFiles);1298 MultiByteToWideChar(CP_ACP, 0, pszFiles, -1, lpszFilesW, len);1299 pszFiles += len + 1;1300 lpszFilesW += len + 1;1301 }1302 *lpszFilesW = 0;1303 }1304 else {1305 //copy strings (excluding terminating 0)1306 memcpy((pDropFile+1), pszFiles, cbszFiles-1);1307 }1308 GlobalUnlock(hDropFile);1309 ::SendMessageA(hwnd, WM_DROPFILES, hDropFile, 0);1310 return 0;1311 }1312 //******************************************************************************1313 //******************************************************************************1314 BOOL Win32BaseWindow::AcceptsDropFiles()1315 {1316 //Is it correct if the window or parent accepts files or must we check the topparent parent?1317 if(getExStyle() & WS_EX_ACCEPTFILES) {1318 return TRUE;1319 }1320 DWORD dwStyle = GetWindowLongA(::GetParent(getWindowHandle()), GWL_EXSTYLE);1321 if(!(dwStyle & WS_EX_ACCEPTFILES)) {1322 return FALSE;1323 }1324 return TRUE;1325 }1326 //******************************************************************************1327 //******************************************************************************1328 1270 ULONG Win32BaseWindow::MsgChar(MSG *msg) 1329 1271 { -
TabularUnified tags/trunk/src/user32/win32wbase.h ¶
r19094 r19095 1 /* $Id: win32wbase.h,v 1.14 1 2002-06-01 17:26:32sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.142 2002-06-02 10:07:59 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 159 159 ULONG DispatchMsgA(MSG *msg); 160 160 ULONG DispatchMsgW(MSG *msg); 161 162 ULONG MsgDropFiles(UINT cFiles, POINT point, LPSTR pszFiles, UINT cbszFiles, BOOL fNonClient = FALSE);163 BOOL AcceptsDropFiles();164 161 165 162 ULONG MsgSetText(LPSTR lpsz, LONG cch); -
TabularUnified tags/trunk/src/user32/windlg.cpp ¶
r18686 r19095 1 /* $Id: windlg.cpp,v 1.3 2 2002-03-28 16:20:07sandervl Exp $ */1 /* $Id: windlg.cpp,v 1.33 2002-06-02 10:07:59 sandervl Exp $ */ 2 2 /* 3 3 * Win32 dialog apis for OS/2 … … 68 68 //****************************************************************************** 69 69 HWND WIN32API CreateDialogIndirectParamA(HINSTANCE hInst, 70 LPC DLGTEMPLATEAdlgtemplate,70 LPCVOID dlgtemplate, 71 71 HWND hwndOwner, DLGPROC dlgproc, 72 72 LPARAM lParamInit) … … 101 101 //****************************************************************************** 102 102 HWND WIN32API CreateDialogIndirectParamW(HINSTANCE hInst, 103 LPC DLGTEMPLATEWdlgtemplate,103 LPCVOID dlgtemplate, 104 104 HWND hwndOwner, DLGPROC dlgproc, 105 105 LPARAM lParamInit) … … 135 135 //****************************************************************************** 136 136 INT WIN32API DialogBoxIndirectParamA(HINSTANCE hInst, 137 LPC DLGTEMPLATEAdlgtemplate,137 LPCVOID dlgtemplate, 138 138 HWND hwndOwner, DLGPROC dlgproc, 139 139 LPARAM lParamInit) … … 161 161 //****************************************************************************** 162 162 //****************************************************************************** 163 INT WIN32API DialogBoxIndirectParamW(HINSTANCE hInst, LPC DLGTEMPLATEWdlgtemplate,163 INT WIN32API DialogBoxIndirectParamW(HINSTANCE hInst, LPCVOID dlgtemplate, 164 164 HWND hwndOwner, DLGPROC dlgproc, 165 165 LPARAM lParamInit) … … 260 260 //****************************************************************************** 261 261 //****************************************************************************** 262 BOOLWIN32API IsDlgButtonChecked( HWND hwnd, UINT id)262 UINT WIN32API IsDlgButtonChecked( HWND hwnd, UINT id) 263 263 { 264 264 dprintf(("USER32: IsDlgButtonChecked\n")); … … 477 477 //****************************************************************************** 478 478 //****************************************************************************** 479 UINT WIN32API GetDlgItemTextA(HWND hwnd, int id, LPSTR lpszName, UINT cch)479 INT WIN32API GetDlgItemTextA(HWND hwnd, int id, LPSTR lpszName, UINT cch) 480 480 { 481 481 return SendDlgItemMessageA( hwnd, id, WM_GETTEXT, cch, (LPARAM)lpszName); … … 483 483 //***************************************************************************** 484 484 //***************************************************************************** 485 UINT WIN32API GetDlgItemTextW(HWND hwnd, int id, LPWSTR lpszName, UINT cch)485 INT WIN32API GetDlgItemTextW(HWND hwnd, int id, LPWSTR lpszName, UINT cch) 486 486 { 487 487 return SendDlgItemMessageW( hwnd, id, WM_GETTEXT, cch, (LPARAM)lpszName);
Note:
See TracChangeset
for help on using the changeset viewer.