Changeset 6745 for trunk/src/user32/oslibmsgtranslate.cpp
- Timestamp:
- Sep 17, 2001, 3:31:30 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibmsgtranslate.cpp
r6718 r6745 1 /* $Id: oslibmsgtranslate.cpp,v 1. 59 2001-09-15 15:23:11sandervl Exp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.60 2001-09-17 13:31:29 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 557 557 case SC_CLOSE: 558 558 { 559 HWND hwnd = win32wnd->GetTopParent(); 560 if(win32wnd->getWindowHandle() != hwnd) { 561 RELEASE_WNDOBJ(win32wnd); 562 win32wnd = Win32BaseWindow::GetWindowFromHandle(hwnd); 563 if(win32wnd == NULL) { 564 DebugInt3(); 565 goto dummymessage; 559 //FALSE -> keyboard operation = user pressed Alt-F4 -> close app 560 //TRUE -> user clicked on close button -> close window 561 if(SHORT2FROMMP(os2Msg->mp2) == FALSE) 562 { 563 HWND hwnd = win32wnd->GetTopParent(); 564 if(win32wnd->getWindowHandle() != hwnd) { 565 RELEASE_WNDOBJ(win32wnd); 566 win32wnd = Win32BaseWindow::GetWindowFromHandle(hwnd); 567 if(win32wnd == NULL) { 568 DebugInt3(); 569 goto dummymessage; 570 } 571 winMsg->hwnd = hwnd; 566 572 } 567 winMsg->hwnd = hwnd;568 573 } 569 574 win32sc = SC_CLOSE_W;
Note:
See TracChangeset
for help on using the changeset viewer.