Changeset 8735 for trunk/src/user32/dragdrop.cpp
- Timestamp:
- Jun 20, 2002, 4:18:15 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dragdrop.cpp
r8553 r8735 1 /* $Id: dragdrop.cpp,v 1. 2 2002-06-02 19:34:25sandervl Exp $ */1 /* $Id: dragdrop.cpp,v 1.3 2002-06-20 14:18:14 sandervl Exp $ */ 2 2 3 3 /* … … 31 31 DWORD dwExStyle; 32 32 HWND orghwnd = hwnd; 33 34 dwExStyle = GetWindowLongA(hwnd, GWL_EXSTYLE); 33 35 34 dwExStyle = GetWindowLongA(hwnd, GWL_EXSTYLE);35 36 36 //TODO: Is it correct if the window or parent accepts files or must we check the top parent? 37 37 hwnd = (dwExStyle & WS_EX_ACCEPTFILES) ? hwnd : GetParent(hwnd); 38 dwExStyle = GetWindowLongA(hwnd, GWL_EXSTYLE); 38 39 39 dwExStyle = GetWindowLongA(hwnd, GWL_EXSTYLE);40 40 if(!(dwExStyle & WS_EX_ACCEPTFILES)) { 41 41 if(pfnDropFiles) { 42 return pfnDropFiles( hwnd);42 return pfnDropFiles(orghwnd); 43 43 } 44 44 return FALSE; 45 45 } 46 46 47 cbszFiles++; //extra terminating 0 47 48 hDropFile = GlobalAlloc(0, sizeof(DROPFILES)+cbszFiles);
Note:
See TracChangeset
for help on using the changeset viewer.