Changeset 2084 for trunk/src/user32/win32wmdiclient.cpp
- Timestamp:
- Dec 16, 1999, 1:11:49 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wmdiclient.cpp
r2040 r2084 1 /* $Id: win32wmdiclient.cpp,v 1.1 3 1999-12-09 10:59:05sandervl Exp $ */1 /* $Id: win32wmdiclient.cpp,v 1.14 1999-12-16 00:11:48 sandervl Exp $ */ 2 2 /* 3 3 * Win32 MDI Client Window Class for OS/2 … … 26 26 #include <spy.h> 27 27 #include "wndmsg.h" 28 #include "hooks.h"29 28 #include <oslibwin.h> 30 29 #include <oslibutil.h> … … 223 222 case WM_NCACTIVATE: 224 223 if( activeChild ) 225 activeChild->Send MessageA(message, wParam, lParam);224 activeChild->SendInternalMessageA(message, wParam, lParam); 226 225 break; 227 226 … … 344 343 { 345 344 prevActive->setStyle(prevActive->getStyle() | WS_SYSMENU); 346 prevActive->Send MessageA( WM_NCACTIVATE, FALSE, 0L );347 prevActive->Send MessageA( WM_MDIACTIVATE, (WPARAM)prevActive->getWindowHandle(), (LPARAM)(child) ? child->getWindowHandle() : 0);345 prevActive->SendInternalMessageA( WM_NCACTIVATE, FALSE, 0L ); 346 prevActive->SendInternalMessageA( WM_MDIACTIVATE, (WPARAM)prevActive->getWindowHandle(), (LPARAM)(child) ? child->getWindowHandle() : 0); 348 347 349 348 /* uncheck menu item */ … … 386 385 if( isActiveFrameWnd ) 387 386 { 388 child->Send MessageA( WM_NCACTIVATE, TRUE, 0L);387 child->SendInternalMessageA( WM_NCACTIVATE, TRUE, 0L); 389 388 if( GetFocus() == getWindowHandle()) 390 Send MessageA( WM_SETFOCUS, (WPARAM)getWindowHandle(), 0L );389 SendInternalMessageA( WM_SETFOCUS, (WPARAM)getWindowHandle(), 0L ); 391 390 else 392 391 SetFocus( getWindowHandle() ); … … 394 393 395 394 /* @@@PH prevActive may be NULL actually ?! */ 396 child->Send MessageA( WM_MDIACTIVATE,395 child->SendInternalMessageA( WM_MDIACTIVATE, 397 396 prevActive ? (WPARAM)prevActive->getWindowHandle() : 0, 398 397 child->getWindowHandle()); … … 602 601 } 603 602 /********************************************************************** 604 * 603 * MDI_RestoreFrameMenu 605 604 */ 606 605 BOOL Win32MDIClientWindow::restoreFrameMenu(Win32BaseWindow *child) … … 611 610 612 611 if(!(iId == SC_RESTORE || iId == SC_CLOSE) ) 613 612 return 0; 614 613 615 614 /* … … 621 620 622 621 GetMenuItemInfoA(getParent()->GetMenu(), 623 624 625 622 0, 623 TRUE, 624 &menuInfo); 626 625 627 626 RemoveMenu(getParent()->GetMenu(),0,MF_BYPOSITION); … … 630 629 #if 0 631 630 if ((menuInfo.fType & MFT_BITMAP) && 632 633 631 (LOWORD(menuInfo.dwTypeData)!=0) && 632 (LOWORD(menuInfo.dwTypeData)!=hBmpClose) ) 634 633 { 635 634 DeleteObject((HBITMAP)LOWORD(menuInfo.dwTypeData)); … … 660 659 661 660 if (getMaximizedChild()) 662 Send MessageA(WM_MDIRESTORE, (WPARAM)getMaximizedChild()->getWindowHandle(), 0);661 SendInternalMessageA(WM_MDIRESTORE, (WPARAM)getMaximizedChild()->getWindowHandle(), 0); 663 662 664 663 if (nActiveChildren == 0) return 0; … … 706 705 707 706 if (getMaximizedChild()) 708 Send MessageA(WM_MDIRESTORE, (WPARAM)getMaximizedChild()->getWindowHandle(), 0);707 SendInternalMessageA(WM_MDIRESTORE, (WPARAM)getMaximizedChild()->getWindowHandle(), 0); 709 708 710 709 if (nActiveChildren == 0) return;
Note:
See TracChangeset
for help on using the changeset viewer.