Changeset 1405 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Oct 22, 1999, 8:11:51 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r1391 r1405 1 /* $Id: win32wbase.cpp,v 1.5 8 1999-10-21 12:19:28 sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.59 1999-10-22 18:11:48 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 137 137 fNoSizeMsg = FALSE; 138 138 fIsDestroyed = FALSE; 139 fCreated = FALSE; 139 140 140 141 windowNameA = NULL; … … 558 559 POINT maxPos; 559 560 CREATESTRUCTA *cs = tmpcs; //pointer to CREATESTRUCT used in CreateWindowExA method 561 RECT rectWndTmp, rectClientTmp; 560 562 561 563 OS2Hwnd = hwndClient; 562 564 OS2HwndFrame = hwndFrame; 563 // if(!isFrameWindow()) 564 // OS2HwndFrame = hwndClient; 565 566 //make backup copy of rectangles (some calls below result in WM_WINDOWPOSCHANGED with weird values since we haven't 567 //set our window size just yet) 568 rectWndTmp = rectWindow; 569 rectClientTmp = rectClient; 565 570 566 571 fNoSizeMsg = TRUE; … … 621 626 fakeWinBase.hwndThis = OS2Hwnd; 622 627 fakeWinBase.pWindowClass = windowClass; 623 // SetFakeOpen32();624 628 625 629 //Set icon from class … … 649 653 if (isChild()) FrameSetBorderSize(this,TRUE); 650 654 655 //restore rectangles (some calls below result in WM_WINDOWPOSCHANGED with weird values since we haven't 656 //set our window size just yet) 657 rectWindow = rectWndTmp; 658 rectClient = rectClientTmp; 659 651 660 /* Send the WM_CREATE message 652 661 * Perhaps we shouldn't allow width/height changes as well. … … 672 681 if(SendMessageA(WM_NCCREATE, 0, (LPARAM)cs) ) 673 682 { 683 fCreated = TRUE; 684 674 685 SendNCCalcSize(FALSE, &rectWindow, NULL, NULL, 0, &rectClient ); 675 686 … … 1559 1570 return result; 1560 1571 } 1572 case WM_NOTIFY: 1573 return 0; //comctl32 controls expect this 1561 1574 1562 1575 default: 1576 if(Msg > WM_USER) { 1577 return 0; 1578 } 1563 1579 return 1; 1564 1580 } … … 1593 1609 LRESULT rc; 1594 1610 BOOL fInternalMsgBackup = fInternalMsg; 1611 1612 //SvL: Some Wine controls send WM_COMMAND messages when they receive the focus -> apps don't like to 1613 // receive those before they get their WM_CREATE message 1614 //NOTE: May need to refuse more messages 1615 if(fCreated == FALSE && Msg == WM_COMMAND) { 1616 dprintf(("SendMessageA BEFORE creation! %s for %x %x %x", GetMsgText(Msg), getWindowHandle(), wParam, lParam)); 1617 return 0; 1618 } 1595 1619 1596 1620 if(Msg != WM_GETDLGCODE && Msg != WM_ENTERIDLE) {//sent *very* often … … 1646 1670 LRESULT rc; 1647 1671 BOOL fInternalMsgBackup = fInternalMsg; 1672 1673 //SvL: Some Wine controls send WM_COMMAND messages when they receive the focus -> apps don't like to 1674 // receive those before they get their WM_CREATE message 1675 //NOTE: May need to refuse more messages 1676 if(fCreated == FALSE && Msg == WM_COMMAND) { 1677 dprintf(("SendMessageA BEFORE creation! %s for %x %x %x", GetMsgText(Msg), getWindowHandle(), wParam, lParam)); 1678 return 0; 1679 } 1648 1680 1649 1681 if(Msg != WM_GETDLGCODE && Msg != WM_ENTERIDLE) {//sent *very* often
Note:
See TracChangeset
for help on using the changeset viewer.