Changeset 10031 for trunk/src/user32/pmwindow.cpp
- Timestamp:
- Apr 23, 2003, 8:01:01 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r10008 r10031 1 /* $Id: pmwindow.cpp,v 1.20 8 2003-04-11 10:55:02sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.209 2003-04-23 18:00:59 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 31 31 #include <dbglog.h> 32 32 #include <win32wbase.h> 33 #include <win32wfake.h> 33 34 #include <win32dlg.h> 34 35 #include "win32wdesktop.h" … … 884 885 { 885 886 win32wnd->DispatchMsgA(pWinMsg); 886 if(WinQueryUpdateRect(hwnd, NULL) == TRUE) 887 if(WinQueryUpdateRect(hwnd, NULL) == TRUE) 887 888 {//the application didn't validate the update region; Windows 888 889 //will only send a WM_PAINT once until another part of the … … 1018 1019 break; 1019 1020 } 1020 1021 1021 1022 ULONG ulBytes, cItems; 1022 1023 char *pszFiles; … … 1036 1037 else { 1037 1038 rc = (MRFROM2SHORT (DOR_NEVERDROP, 0)); 1038 } 1039 } 1039 1040 break; 1040 1041 } … … 1272 1273 { 1273 1274 //ignore this message. don't forward it to the default PM frame window handler 1274 //as that one sends it to the client. as a result we end up translating 1275 //as that one sends it to the client. as a result we end up translating 1275 1276 //it twice 1276 1277 break; … … 1366 1367 DWORD dwOldStyle = win32wnd->getOldStyle(); 1367 1368 DWORD dwStyle = win32wnd->getStyle(); 1368 1369 1369 1370 win32wnd->setOldStyle(dwStyle); 1370 1371 if((dwOldStyle & WS_MINIMIZE_W) && !(dwStyle & WS_MINIMIZE_W)) { … … 1553 1554 WinShowWindow(win32wnd->getOS2WindowHandle(), 0); 1554 1555 } 1555 if(pswp->fl & (SWP_SHOW|SWP_HIDE)) 1556 if(pswp->fl & (SWP_SHOW|SWP_HIDE)) 1556 1557 {//TODO: necessary for more options? (activate?) 1557 1558 if(win32wnd->CanReceiveSizeMsgs()) … … 1948 1949 //result will be illegal. Btw we do not honour PM border size settings 1949 1950 //and never will. I was unable to figure out why only X coordinate 1950 //is being broken but not Y as well. 1951 1952 if ((pswp->fl & SWP_MAXIMIZE) == SWP_MAXIMIZE) 1951 //is being broken but not Y as well. 1952 1953 if ((pswp->fl & SWP_MAXIMIZE) == SWP_MAXIMIZE) 1953 1954 { 1954 1955 RECT rect; … … 2091 2092 SetWin32TIB(); 2092 2093 2093 //We can't query the window object directly from this window as it's not the 2094 //real thing. There should be a genuine win32 child window which we can use. 2095 HWND hwndChild = WinQueryWindow(hwnd, QW_TOP); 2096 2097 win32wndchild = Win32BaseWindow::GetWindowFromOS2FrameHandle(hwndChild); 2098 if(win32wndchild == NULL) { 2099 DebugInt3(); 2100 goto RunDefWndProc; 2101 } 2102 //now get the parent window object 2103 win32wnd = Win32BaseWindow::GetWindowFromHandle(GetParent(win32wndchild->getWindowHandle())); 2104 if(win32wndchild) RELEASE_WNDOBJ(win32wndchild); 2105 2094 win32wnd = Win32FakeWindow::GetWindowFromOS2Handle(hwnd); 2106 2095 if(win32wnd == NULL) { 2107 2096 DebugInt3(); … … 2207 2196 //****************************************************************************** 2208 2197 //****************************************************************************** 2209 static char *PMDragExtractFiles(PDRAGINFO pDragInfo, ULONG *pcItems, ULONG *pulBytes) 2198 static char *PMDragExtractFiles(PDRAGINFO pDragInfo, ULONG *pcItems, ULONG *pulBytes) 2210 2199 { 2211 2200 PDRAGITEM pDragItem; … … 2225 2214 2226 2215 //computer memory required to hold all filenames 2227 int bufsize = 0; 2216 int bufsize = 0; 2228 2217 for (i = 0; i < cItems; i++) { 2229 2218 pDragItem = DrgQueryDragitemPtr(pDragInfo, i); … … 2240 2229 goto failure; 2241 2230 } 2242 memset(pszFiles, 0, bufsize); 2231 memset(pszFiles, 0, bufsize); 2243 2232 2244 2233 pszCurFile = pszFiles; … … 2285 2274 //****************************************************************************** 2286 2275 //****************************************************************************** 2287 static BOOL PMDragValidate(PDRAGINFO pDragInfo) 2276 static BOOL PMDragValidate(PDRAGINFO pDragInfo) 2288 2277 { 2289 2278 PDRAGITEM pDragItem; … … 2324 2313 2325 2314 dprintf(("dropped file %s%s", szContainerName, szFileName)); 2326 break; 2315 break; 2327 2316 } 2328 2317 … … 2347 2336 failure: 2348 2337 DrgFreeDraginfo(pDragInfo); 2349 return FALSE; 2338 return FALSE; 2350 2339 } 2351 2340 … … 2376 2365 { 2377 2366 static char szSWPFlags[512]; 2378 2367 2379 2368 szSWPFlags[0] = 0; 2380 2369 … … 2402 2391 if(flags & SWP_ACTIVATE) { 2403 2392 strcat(szSWPFlags, "SWP_ACTIVATE "); 2404 } 2393 } 2405 2394 if(flags & SWP_DEACTIVATE) { 2406 2395 strcat(szSWPFlags, "SWP_DEACTIVATE ");
Note:
See TracChangeset
for help on using the changeset viewer.