Changeset 309 for trunk/src/user32/new/win32wnd.cpp
- Timestamp:
- Jul 15, 1999, 8:03:03 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/win32wnd.cpp
r304 r309 1 /* $Id: win32wnd.cpp,v 1. 2 1999-07-14 21:05:58 cbratschiExp $ */1 /* $Id: win32wnd.cpp,v 1.3 1999-07-15 18:03:02 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Code for OS/2 … … 571 571 } 572 572 //****************************************************************************** 573 //todo, unicode msgs 574 //****************************************************************************** 575 LRESULT Win32Window::SendMessageW(ULONG Msg, WPARAM wParam, LPARAM lParam) 576 { 577 if(PostSpyMessage(getWindowHandle(), Msg, wParam, lParam) == FALSE) 578 dprintf(("SendMessageA %s for %x %x %x", GetMsgText(Msg), getWindowHandle(), wParam, lParam)); 579 580 if(HkCBT::OS2HkCBTProc(getWindowHandle(), Msg, wParam, lParam) == TRUE) {//hook swallowed msg 581 return(0); 582 } 583 switch(Msg) 584 { 585 case WM_CREATE: 586 { 587 if(win32wndproc(getWindowHandle(), WM_NCCREATE, 0, lParam) == 0) { 588 dprintf(("WM_NCCREATE returned FALSE\n")); 589 return(0); //don't create window 590 } 591 if(win32wndproc(getWindowHandle(), WM_CREATE, 0, lParam) == 0) { 592 dprintf(("WM_CREATE returned FALSE\n")); 593 return(0); //don't create window 594 } 595 NotifyParent(Msg, wParam, lParam); 596 597 return(1); 598 } 599 case WM_LBUTTONDOWN: 600 case WM_MBUTTONDOWN: 601 case WM_RBUTTONDOWN: 602 NotifyParent(Msg, wParam, lParam); 603 return win32wndproc(getWindowHandle(), Msg, wParam, lParam); 604 605 case WM_DESTROY: 606 win32wndproc(getWindowHandle(), WM_NCDESTROY, 0, 0); 607 NotifyParent(Msg, wParam, lParam); 608 return win32wndproc(getWindowHandle(), WM_DESTROY, 0, 0); 609 default: 610 return win32wndproc(getWindowHandle(), Msg, wParam, lParam); 611 } 612 } 613 //****************************************************************************** 614 //****************************************************************************** 615 LRESULT Win32Window::PostMessageA(ULONG msg, WPARAM wParam, LPARAM lParam) 616 { 617 POSTMSG_PACKET *postmsg; 618 619 postmsg = (POSTMSG_PACKET *)malloc(sizeof(POSTMSG_PACKET)); 620 if(postmsg == NULL) { 621 dprintf(("Win32Window::PostMessageA: malloc returned NULL!!")); 622 } 623 postmsg->Msg = msg; 624 postmsg->wParam = wParam; 625 postmsg->lParam = lParam; 626 return OSLibPostMessage(OS2Hwnd, WM_WIN32_POSTMESSAGEA, (ULONG)postmsg, 0); 627 } 628 //****************************************************************************** 629 //****************************************************************************** 630 LRESULT Win32Window::PostMessageW(ULONG msg, WPARAM wParam, LPARAM lParam) 631 { 632 POSTMSG_PACKET *postmsg; 633 634 postmsg = (POSTMSG_PACKET *)malloc(sizeof(POSTMSG_PACKET)); 635 if(postmsg == NULL) { 636 dprintf(("Win32Window::PostMessageW: malloc returned NULL!!")); 637 } 638 postmsg->Msg = msg; 639 postmsg->wParam = wParam; 640 postmsg->lParam = lParam; 641 return OSLibPostMessage(OS2Hwnd, WM_WIN32_POSTMESSAGEW, (ULONG)postmsg, 0); 642 } 643 //****************************************************************************** 573 644 //****************************************************************************** 574 645 void Win32Window::NotifyParent(UINT Msg, WPARAM wParam, LPARAM lParam)
Note:
See TracChangeset
for help on using the changeset viewer.