Changeset 131 for trunk/src/user32/user32.cpp
- Timestamp:
- Jun 20, 1999, 4:02:13 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/user32.cpp
r106 r131 1 /* $Id: user32.cpp,v 1. 7 1999-06-12 20:44:07 cbratschiExp $ */1 /* $Id: user32.cpp,v 1.8 1999-06-20 14:02:13 sandervl Exp $ */ 2 2 3 3 /* … … 545 545 int nWidth, 546 546 int nHeight, 547 HWND arg9,547 HWND parent, 548 548 HMENU arg10, 549 549 HINSTANCE arg11, … … 557 557 arg3 = (LPCSTR)"CRASH, CRASH"; 558 558 559 //SvL: This break generic.exe & notepad.exe (probably many others too) 560 //These parameters can be CW_USEDEFAULT, which is 0x80000000 561 #if 0 562 if (nWidth < 0) nWidth = 0; 563 if (x < 0) x = 0; 564 if (nHeight< 0) nHeight = 0; 565 if (y < 0) y = 0; 566 #endif 567 568 // 6-12-99 CB: WS_CLIPCHILDREN not set -> controls not redrawn 569 // Problems with group boxes 570 571 #ifndef WS_CLIPCHILDREN 572 #define WS_CLIPCHILDREN 0x20000000L 573 #endif 574 575 dwStyle |= WS_CLIPCHILDREN; 576 577 //SvL: Breaks applications 578 #if 0 579 /* @@@PH 98/06/21 redraw problems disappear when WS_SYNCPAINT is on */ 580 #ifndef WS_VISIBLE 581 #define WS_VISIBLE 0x80000000L 582 #endif 583 584 #ifndef WS_SYNCPAINT 585 #define WS_SYNCPAINT 0x02000000L 586 #endif 587 588 #ifndef WS_CLIPSYBLINGS 589 #define WS_CLIPSYBLINGS 0x10000000L 590 #endif 591 592 dwStyle |= WS_SYNCPAINT; 593 594 /* @@@PH 98/06/21 experimental fix for WinHlp32 */ 595 // SOL.EXE crashes here, but WINHLP32 does not display the 596 // navigation buttons otherwise. 597 dwStyle |= WS_VISIBLE; 598 #endif 559 // 6-12-99 CB: WS_CLIPCHILDREN not set -> controls not redrawn 560 // Problems with group boxes 561 562 //SvL: Correct window style (like Wine does) instead 563 if(dwStyle & WS_CHILD) { 564 dwStyle |= WS_CLIPSIBLINGS; 565 if(!(dwStyle & WS_POPUP)) { 566 dwStyle |= WS_CAPTION; 567 } 568 } 569 if(dwExStyle & WS_EX_DLGMODALFRAME) 570 { 571 dwStyle &= ~WS_THICKFRAME; 572 } 599 573 600 574 #ifdef DEBUG 601 575 WriteLog("USER32: CreateWindow: dwExStyle = %X\n", dwExStyle); 602 576 if((int)arg2 >> 16 != 0) 603 WriteLog("USER32: CreateWindow: classname = %s\n", arg2);577 WriteLog("USER32: CreateWindow: classname = %s\n", arg2); 604 578 else WriteLog("USER32: CreateWindow: classname = %X\n", arg2); 605 579 WriteLog("USER32: CreateWindow: windowname= %s\n", arg3); … … 609 583 WriteLog("USER32: CreateWindow: nWidth = %d\n", nWidth); 610 584 WriteLog("USER32: CreateWindow: nHeight = %d\n", nHeight); 611 WriteLog("USER32: CreateWindow: parent = %X\n", arg9);585 WriteLog("USER32: CreateWindow: parent = %X\n", parent); 612 586 WriteLog("USER32: CreateWindow: hwmenu = %X\n", arg10); 613 587 WriteLog("USER32: CreateWindow: hinstance = %X\n", arg11); … … 640 614 nWidth, 641 615 nHeight, 642 arg9,616 parent, 643 617 arg10, 644 618 arg11, … … 653 627 window->SetWindowHandle(hwnd); 654 628 } 629 //SvL: Taken from Wine 630 if(dwStyle & WS_CHILD && !(dwExStyle & WS_EX_NOPARENTNOTIFY) ) 631 { 632 /* Notify the parent window only */ 633 SendMessageA(parent, WM_PARENTNOTIFY, MAKEWPARAM(WM_CREATE, 0), (LPARAM)hwnd ); 634 } 635 655 636 dprintf(("USER32: ************CreateWindowExA %s (%d,%d,%d,%d), hwnd = %X\n", arg2, x, y, nWidth, nHeight, hwnd)); 656 637 return(hwnd);
Note:
See TracChangeset
for help on using the changeset viewer.