Changeset 383 for trunk/src/user32/new/win32wnd.cpp
- Timestamp:
- Jul 24, 1999, 2:39:53 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/win32wnd.cpp
r345 r383 1 /* $Id: win32wnd.cpp,v 1.1 8 1999-07-20 15:46:54sandervl Exp $ */1 /* $Id: win32wnd.cpp,v 1.19 1999-07-24 12:39:53 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Code for OS/2 … … 110 110 Win32Window::~Win32Window() 111 111 { 112 OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32WNDPTR, 0); 113 OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32PM_MAGIC, 0); 114 112 115 if(Win32Hwnd) 113 HMHandleFree(Win32Hwnd );116 HMHandleFree(Win32Hwnd & 0xFFFF); 114 117 if(windowName) 115 118 free(windowName); … … 394 397 //Set icon from class 395 398 if(windowClass->getIcon()) 396 399 SetIcon(windowClass->getIcon()); 397 400 398 401 /* Send the WM_CREATE message … … 423 426 HOOK_CallHooks16( WH_SHELL, HSHELL_WINDOWCREATED, hwnd, 0 ); 424 427 #endif 425 428 SetLastError(0); 426 429 return TRUE; 427 430 } … … 656 659 ULONG Win32Window::MsgClose() 657 660 { 658 return SendInternalMessageA(WM_CLOSE, 0, 0); 661 if(SendInternalMessageA(WM_CLOSE, 0, 0) == 0) { 662 return 0; //app handles this message 663 } 664 delete this; 665 return 1; 659 666 } 660 667 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.