- Timestamp:
- Oct 14, 1999, 11:22:43 AM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r1267 r1281 1 /* $Id: dc.cpp,v 1.1 2 1999-10-13 16:02:41 phallerExp $ */1 /* $Id: dc.cpp,v 1.13 1999-10-14 09:22:38 sandervl Exp $ */ 2 2 3 3 /* … … 33 33 #include "dcdata.h" 34 34 35 36 35 ODINDEBUGCHANNEL(USER32-DC) 37 38 36 39 37 #undef SEVERITY_ERROR … … 666 664 } 667 665 668 if (wnd->isFrameWindow())669 {666 // if (wnd->isFrameWindow()) 667 // { 670 668 // WinSendMsg( hwnd, /* WM_DRAW */ 0x20D, (MPARAM)hps, MPVOID ); 671 669 selectClientArea(wnd, pHps, &rect); 672 }670 // } 673 671 674 672 if (hPS_ownDC == 0) -
trunk/src/user32/listbox.cpp
r1265 r1281 1 /* $Id: listbox.cpp,v 1. 4 1999-10-13 14:24:24sandervl Exp $ */1 /* $Id: listbox.cpp,v 1.5 1999-10-14 09:22:39 sandervl Exp $ */ 2 2 /* 3 3 * Listbox controls … … 201 201 else 202 202 { 203 info.nMin = 0; 204 info.nMax = descr->nb_items - 1; 205 // info.nPos = descr->top_item; 206 info.nPos = descr->selected_item - 1; 203 info.nPos = descr->top_item; 204 207 205 info.nPage = LISTBOX_GetCurrentPageSize( hwnd, descr ); 208 206 info.fMask = SIF_RANGE | SIF_POS | SIF_PAGE; 207 info.nMin = 0; 208 // info.nMax = descr->nb_items - info.nPage; 209 info.nMax = descr->nb_items; 210 209 211 if (descr->style & LBS_DISABLENOSCROLL) 210 212 info.fMask |= SIF_DISABLENOSCROLL; -
trunk/src/user32/oslibwin.cpp
r1265 r1281 1 /* $Id: oslibwin.cpp,v 1.2 6 1999-10-13 14:24:25sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.27 1999-10-14 09:22:40 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 48 48 HWND hwndClient; 49 49 50 if(dwFrameStyle) 51 dprintf(("FRAME: WinCreateWindow %x %x %x %s", hwndParent, dwWinStyle, dwFrameStyle, pszName)); 52 else dprintf(("WinCreateWindow %x %x %x %s", hwndParent, dwWinStyle, dwFrameStyle, pszName)); 50 dprintf(("WinCreateWindow %x %x %x %s", hwndParent, dwWinStyle, dwFrameStyle, pszName)); 53 51 54 52 if(pszName && *pszName == 0) { … … 62 60 } 63 61 64 if(dwFrameStyle || hwndParent == HWND_DESKTOP) {65 ULONG dwClientStyle; 66 62 ULONG dwClientStyle; 63 64 // if(dwFrameStyle || hwndParent == HWND_DESKTOP) { 67 65 dwClientStyle = dwWinStyle & ~(WS_TABSTOP | WS_GROUP); 68 // if(pszName)69 // dwFrameStyle |= FCF_TITLEBAR;70 66 71 67 dwFrameStyle |= FCF_NOBYTEALIGN; 72 if (hwndParent == HWND_DESKTOP) dwFrameStyle |= FCF_TASKLIST | FCF_NOMOVEWITHOWNER; 68 if (hwndParent == HWND_DESKTOP && dwFrameStyle & FCF_TITLEBAR) 69 dwFrameStyle |= FCF_TASKLIST | FCF_NOMOVEWITHOWNER; 70 73 71 dwWinStyle &= ~WS_CLIPCHILDREN; 74 72 … … 84 82 dprintf(("OSLibWinCreateWindow: (FRAME) WinCreateStdWindow failed (%x)", WinGetLastError(GetThreadHAB()))); 85 83 return 0; 84 #if 0 86 85 } 87 86 hwndClient = WinCreateWindow(hwndParent, WIN32_STDCLASS, pszName, dwWinStyle, 0, 0, 0, 0, … … 90 89 *hwndFrame = hwndClient; 91 90 return hwndClient; 91 #endif 92 92 } 93 93 //****************************************************************************** … … 144 144 if(dwStyle & WS_BORDER_W) 145 145 { 146 *OSFrameStyle |= FCF_ SIZEBORDER;146 *OSFrameStyle |= FCF_BORDER; 147 147 *borderHeight = *borderWidth = 1; 148 148 } … … 182 182 } 183 183 184 //Clear certain frame bits when the window doesn't have a titlebar 185 if(!(*OSFrameStyle & FCF_TITLEBAR)) { 186 *OSFrameStyle &= ~(FCF_MINBUTTON|FCF_MAXBUTTON|FCF_SYSMENU); 187 } 184 188 return TRUE; 185 189 } -
trunk/src/user32/pmwindow.cpp
r1256 r1281 1 /* $Id: pmwindow.cpp,v 1.2 5 1999-10-12 14:47:22sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.26 1999-10-14 09:22:40 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 168 168 MRESULT EXPENTRY Win32WindowProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 169 169 { 170 POSTMSG_PACKET *postmsg;171 OSLIBPOINT point, ClientPoint;172 Win32BaseWindow 173 APIRET rc;170 POSTMSG_PACKET *postmsg; 171 OSLIBPOINT point, ClientPoint; 172 Win32BaseWindow *win32wnd; 173 APIRET rc; 174 174 175 175 //Restore our FS selector … … 190 190 //OS/2 msgs 191 191 case WM_CREATE: 192 { 193 THDB *thdb = GetThreadTHDB(); 194 195 if(thdb == NULL || thdb->newWindow == 0) 196 goto createfail; 197 192 198 //Processing is done in after WinCreateWindow returns 193 199 dprintf(("OS2: WM_CREATE %x", hwnd)); 200 win32wnd = (Win32BaseWindow *)thdb->newWindow; 201 202 if(win32wnd->MsgCreate(WinQueryWindow(hwnd, QW_PARENT), hwnd) == FALSE) 203 { 204 delete win32wnd; 205 RestoreOS2TIB(); 206 return (MRESULT)TRUE; //discontinue window creation 207 } 208 createfail: 194 209 RestoreOS2TIB(); 195 210 return (MRESULT)FALSE; 211 } 196 212 197 213 case WM_QUIT: … … 285 301 } 286 302 OSLibMapSWPtoWINDOWPOS(pswp, &wp, pswpo, hParent, hFrame); 303 304 SWP swpFrame; 305 WinQueryWindowPos(win32wnd->getOS2FrameWindowHandle(), &swpFrame); 306 dprintf(("WINDOWPOSCHANGE %x %x %x (%d,%d) (%d,%d)", win32wnd->getWindowHandle(), win32wnd->getOS2FrameWindowHandle(), 307 swpFrame.fl,swpFrame.x, swpFrame.y, swpFrame.cx, swpFrame.cy)); 308 309 RECTL rect; 310 WinQueryWindowRect(win32wnd->getOS2FrameWindowHandle(), &rect); 311 dprintf(("WINDOWPOSCHANGE %x %x (%d,%d) (%d,%d)", win32wnd->getWindowHandle(), win32wnd->getOS2FrameWindowHandle(), 312 rect.xLeft, rect.yBottom, rect.xRight, rect.yTop)); 287 313 288 314 win32wnd->setWindowRect(wp.x, wp.y, wp.x + wp.cx, wp.y + wp.cy); -
trunk/src/user32/win32dlg.cpp
r1265 r1281 1 /* $Id: win32dlg.cpp,v 1.1 3 1999-10-13 14:24:26sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.14 1999-10-14 09:22:41 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 169 169 170 170 fIsDialog = TRUE; 171 CreateWindowExA(&cs, classAtom); 172 173 if(!isUnicode) { 174 if(cs.lpszName) FreeAsciiString((LPSTR)cs.lpszName); 175 if(HIWORD(cs.lpszClass)) { 176 FreeAsciiString((LPSTR)cs.lpszClass); 177 } 178 } 179 180 if (!getWindowHandle()) 171 Win32DlgProc = dlgProc; 172 173 this->tmpParam = param; 174 this->tmpDlgTemplate = (LPSTR)dlgTemplate; 175 176 if (CreateWindowExA(&cs, classAtom) == FALSE) 181 177 { 182 178 if (hUserFont) DeleteObject( hUserFont ); 183 179 if (hMenu) DestroyMenu( hMenu ); 180 SetLastError(ERROR_OUTOFMEMORY); //TODO: Wrong error 184 181 return; 182 } 183 SetLastError(0); 184 return; 185 } 186 //****************************************************************************** 187 //****************************************************************************** 188 Win32Dialog::~Win32Dialog() 189 { 190 if (hUserFont) DeleteObject( hUserFont ); 191 if (hMenu) DestroyMenu( hMenu ); 192 } 193 //****************************************************************************** 194 //****************************************************************************** 195 ULONG Win32Dialog::MsgCreate(HWND hwndFrame, HWND hwndClient) 196 { 197 CREATESTRUCTA *cs = tmpcs; //pointer to CREATESTRUCT used in CreateWindowExA method 198 LPARAM param = tmpParam; 199 LPSTR dlgTemplate = tmpDlgTemplate; 200 201 Win32BaseWindow::MsgCreate(hwndFrame, hwndClient); 202 203 if(!isUnicode) { 204 if(cs->lpszName) FreeAsciiString((LPSTR)cs->lpszName); 205 if(HIWORD(cs->lpszClass)) { 206 FreeAsciiString((LPSTR)cs->lpszClass); 207 } 185 208 } 186 209 187 210 //TODO: 188 211 // wndPtr->helpContext = helpId; 189 Win32DlgProc = dlgProc;190 212 191 213 if (hUserFont) … … 193 215 194 216 /* Create controls */ 195 if (createControls(dlgTemplate, hInst ))217 if (createControls(dlgTemplate, hInstance)) 196 218 { 197 219 dprintf(("********* DIALOG CONTROLS CREATED ************")); … … 199 221 hwndFocus = GetNextDlgTabItem( getWindowHandle(), 0, FALSE ); 200 222 201 if (SendMessageA(WM_INITDIALOG, (WPARAM)hwndFocus, param))223 if (SendMessageA(WM_INITDIALOG, (WPARAM)hwndFocus, param)) 202 224 SetFocus(hwndFocus); 203 225 … … 207 229 ::UpdateWindow( getWindowHandle() ); 208 230 } 209 SetLastError(0);231 SetLastError(0); 210 232 dprintf(("********* DIALOG CREATED ************")); 211 return ;233 return TRUE; 212 234 } 213 235 dprintf(("********* DIALOG CREATION FAILED! ************")); 214 DestroyWindow(); 215 } 216 //****************************************************************************** 217 //****************************************************************************** 218 Win32Dialog::~Win32Dialog() 219 { 220 if (hUserFont) DeleteObject( hUserFont ); 221 if (hMenu) DestroyMenu( hMenu ); 222 236 return FALSE; 223 237 } 224 238 /*********************************************************************** … … 1097 1111 //****************************************************************************** 1098 1112 //****************************************************************************** 1099 ULONG Win32Dialog::MsgOS2Create(HWND hwndOS2, ULONG initParam)1100 {1101 OS2Hwnd = hwndOS2;1102 return win32wndproc(Win32Hwnd, WM_CREATE, 0, initParam);1103 }1104 //******************************************************************************1105 //******************************************************************************1106 1113 LONG Win32Dialog::SetWindowLongA(int index, ULONG value) 1107 1114 { -
trunk/src/user32/win32dlg.h
r1240 r1281 1 /* $Id: win32dlg.h,v 1. 2 1999-10-10 08:59:41 sandervl Exp $ */1 /* $Id: win32dlg.h,v 1.3 1999-10-14 09:22:41 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 73 73 BOOL endDialog(int retval); 74 74 75 virtual ULONG Msg OS2Create(HWND hwndOS2, ULONG initParam);75 virtual ULONG MsgCreate(HWND hwndFrame, HWND hwndClient); 76 76 77 77 virtual LONG SetWindowLongA(int index, ULONG value); … … 113 113 DWORD dialogFlags; 114 114 115 DWORD tmpParam; //set in ctor, used in MsgCreate method 116 LPSTR tmpDlgTemplate; //set in ctor, used in MsgCreate method 115 117 private: 116 118 static BOOL fInitialized; -
trunk/src/user32/win32wbase.cpp
r1265 r1281 1 /* $Id: win32wbase.cpp,v 1.4 0 1999-10-13 14:24:27sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.41 1999-10-14 09:22:42 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 40 40 #include "pmframe.h" 41 41 #include "win32wdesktop.h" 42 #include <wprocess.h> 42 43 43 44 #define HAS_DLGFRAME(style,exStyle) \ … … 96 97 { 97 98 isUnicode = FALSE; 98 fCreated = FALSE;99 99 fFirstShow = TRUE; 100 100 fIsDialog = FALSE; 101 101 fInternalMsg = FALSE; 102 fNoSizeMsg = FALSE; 102 103 103 104 windowNameA = NULL; … … 203 204 { 204 205 char buffer[256]; 205 INT sw = SW_SHOW;206 206 POINT maxSize, maxPos, minTrack, maxTrack; 207 207 … … 210 210 #endif 211 211 212 sw = SW_SHOW; 212 213 SetLastError(0); 213 214 … … 463 464 rectClient = rectWindow; 464 465 465 //CB: dwOSFrameStyle handled by OSLibWinConvertStyle466 // OSLibWinCreateWindow: perhaps problems467 // shouldn't we always use a frame? -> no problems with scrollbars468 469 466 if(HIWORD(cs->lpszName)) 470 467 { … … 474 471 } 475 472 473 //copy pointer of CREATESTRUCT for usage in MsgCreate method 474 tmpcs = cs; 475 476 //Store our window object pointer in thread local memory, so PMWINDOW.CPP can retrieve it 477 THDB *thdb = GetThreadTHDB(); 478 479 if(thdb == NULL) { 480 dprintf(("Window creation failed - thdb == NULL")); //this is VERY bad 481 ExitProcess(666); 482 return FALSE; 483 } 484 485 thdb->newWindow = (ULONG)this; 486 476 487 OS2Hwnd = OSLibWinCreateWindow((getParent()) ? getParent()->getOS2WindowHandle() : OSLIB_HWND_DESKTOP, 477 488 dwOSWinStyle, dwOSFrameStyle, (char *)windowNameA, … … 485 496 return FALSE; 486 497 } 498 SetLastError(0); 499 return TRUE; 500 } 501 //****************************************************************************** 502 //****************************************************************************** 503 BOOL Win32BaseWindow::MsgCreate(HWND hwndFrame, HWND hwndClient) 504 { 505 POINT maxPos; 506 CREATESTRUCTA *cs = tmpcs; //pointer to CREATESTRUCT used in CreateWindowExA method 507 508 OS2Hwnd = hwndClient; 509 OS2HwndFrame = hwndFrame; 510 // if(!isFrameWindow()) 511 // OS2HwndFrame = hwndClient; 487 512 488 513 if(OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32WNDPTR, (ULONG)this) == FALSE) { … … 523 548 #endif 524 549 525 if ( cs->style & WS_HSCROLL)550 if (dwStyle & WS_HSCROLL) 526 551 { 527 552 hwndHorzScroll = OSLibWinQueryScrollBarHandle(OS2HwndFrame, OSLIB_HSCROLL); 528 OSLibWinShowScrollBar(OS2HwndFrame, hwndHorzScroll, OSLIB_HSCROLL, FALSE, TRUE);529 } 530 531 if ( cs->style & WS_VSCROLL) {553 // OSLibWinShowScrollBar(OS2HwndFrame, hwndHorzScroll, OSLIB_HSCROLL, FALSE, TRUE); 554 } 555 556 if (dwStyle & WS_VSCROLL) { 532 557 hwndVertScroll = OSLibWinQueryScrollBarHandle(OS2HwndFrame, OSLIB_VSCROLL); 533 OSLibWinShowScrollBar(OS2HwndFrame, hwndVertScroll, OSLIB_VSCROLL, FALSE, TRUE);558 // OSLibWinShowScrollBar(OS2HwndFrame, hwndVertScroll, OSLIB_VSCROLL, FALSE, TRUE); 534 559 } 535 560 … … 558 583 if(windowClass->getIcon()) 559 584 SetIcon(windowClass->getIcon()); 560 561 if(getParent()) {562 SetWindowPos(getParent()->getWindowHandle(), rectClient.left, rectClient.top,563 rectClient.right-rectClient.left,564 rectClient.bottom-rectClient.top,565 SWP_NOACTIVATE | SWP_NOZORDER );566 }567 else {568 SetWindowPos(HWND_TOP, rectClient.left, rectClient.top,569 rectClient.right-rectClient.left,570 rectClient.bottom-rectClient.top,571 SWP_NOACTIVATE);572 }573 585 574 586 //Subclass frame … … 580 592 } 581 593 582 //Get the client window rectangle583 GetClientRect(Win32Hwnd, &rectClient);584 585 594 /* Send the WM_CREATE message 586 595 * Perhaps we shouldn't allow width/height changes as well. … … 589 598 maxPos.x = rectWindow.left; maxPos.y = rectWindow.top; 590 599 600 fNoSizeMsg = TRUE; 601 if(getParent()) { 602 SetWindowPos(getParent()->getWindowHandle(), rectClient.left, rectClient.top, 603 rectClient.right-rectClient.left, 604 rectClient.bottom-rectClient.top, 605 SWP_NOACTIVATE | SWP_NOZORDER ); 606 } 607 else { 608 SetWindowPos(HWND_TOP, rectClient.left, rectClient.top, 609 rectClient.right-rectClient.left, 610 rectClient.bottom-rectClient.top, 611 SWP_NOACTIVATE); 612 } 613 fNoSizeMsg = FALSE; 614 591 615 if(SendMessageA(WM_NCCREATE, 0, (LPARAM)cs) ) 592 616 { 593 fCreated = TRUE; //Allow WM_SIZE messages now594 617 SendNCCalcSize(FALSE, &rectWindow, NULL, NULL, 0, &rectClient ); 595 618 … … 604 627 SendMessageA(WM_MOVE, 0, MAKELONG( rectClient.left, rectClient.top ) ); 605 628 } 629 606 630 if (cs->style & WS_VISIBLE) ShowWindow( sw ); 607 631 … … 617 641 } 618 642 dprintf(("Window creation FAILED (NCCREATE cancelled creation)")); 619 fCreated = FALSE;620 OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32WNDPTR, 0);621 OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32PM_MAGIC, 0);622 DestroyWindow();623 643 SetLastError(ERROR_OUTOFMEMORY); //TODO: Better error 624 644 return FALSE; 625 }626 //******************************************************************************627 //******************************************************************************628 ULONG Win32BaseWindow::MsgCreate(HWND hwndOS2, ULONG initParam)629 {630 OS2Hwnd = hwndOS2;631 return SendInternalMessageA(WM_CREATE, 0, initParam);632 645 } 633 646 //****************************************************************************** … … 680 693 { 681 694 dprintf(("MsgPosChanging")); 682 #if 1 683 if(fCreated == FALSE) { 695 if(fNoSizeMsg) 684 696 return 1; 685 } 686 #endif 697 687 698 return SendInternalMessageA(WM_WINDOWPOSCHANGING, 0, lp); 688 699 } … … 692 703 { 693 704 dprintf(("MsgPosChanged")); 694 #if 1 695 if(fCreated == FALSE) { 705 if(fNoSizeMsg) 696 706 return 1; 697 } 698 #endif 707 699 708 return SendInternalMessageA(WM_WINDOWPOSCHANGED, 0, lp); 700 709 } … … 704 713 { 705 714 dprintf(("MsgMove to (%d,%d)", x, y)); 706 if(f Created == FALSE) {715 if(fNoSizeMsg) 707 716 return 1; 708 }709 717 710 718 return SendInternalMessageA(WM_MOVE, 0, MAKELONG((USHORT)x, (USHORT)y)); … … 755 763 { 756 764 WORD fwSizeType = 0; 757 758 if(fCreated == FALSE) {//Solitaire crashes if it receives a WM_SIZE during CreateWindowEx (normal or our fault?)759 return 1;760 }761 765 762 766 if(fMinimize) { … … 1115 1119 } 1116 1120 //****************************************************************************** 1121 //****************************************************************************** 1122 BOOL Win32BaseWindow::isFrameWindow() 1123 { 1124 if((getParent() == NULL || getParent() == windowDesktop) && ((dwStyle & WS_CAPTION) == WS_CAPTION)) 1125 return TRUE; 1126 1127 return FALSE; 1128 } 1129 //****************************************************************************** 1117 1130 //TODO: Not complete (flags) 1118 1131 //****************************************************************************** … … 1176 1189 { 1177 1190 infoPtr->Page = info->nPage; 1191 dprintf(("SetScrollInfo: Set pagesize to %d", info->nPage)); 1178 1192 OSLibWinSetScrollPageSize(OS2HwndFrame, hwndScroll, info->nPage, infoPtr->MaxVal, fRedraw); 1179 1193 } … … 1186 1200 { 1187 1201 infoPtr->CurVal = info->nPos; 1202 dprintf(("SetScrollInfo: Set scroll position to %d", info->nPos)); 1188 1203 OSLibWinSetScrollPos(OS2HwndFrame, hwndScroll, info->nPos, fRedraw); 1189 1204 } … … 1208 1223 infoPtr->MaxVal = info->nMax; 1209 1224 1225 dprintf(("SetScrollInfo: Set scroll range to (%d,%d)", info->nMin, info->nMax)); 1210 1226 OSLibWinSetScrollRange(OS2HwndFrame, hwndScroll, info->nMin, info->nMax, fRedraw); 1211 1227 } … … 1984 2000 { 1985 2001 hParent = getParent()->getOS2WindowHandle(); 1986 OSLibWinQueryWindowPos(isFrameWindow() ? OS2HwndFrame:OS2Hwnd, &swpOld);1987 2002 } 1988 else 1989 OSLibWinQueryWindowPos(OS2HwndFrame, &swpOld); 2003 OSLibWinQueryWindowPos(OS2HwndFrame, &swpOld); 1990 2004 } 1991 2005 … … 1994 2008 return TRUE; 1995 2009 1996 if ((swp.fl & SWPOS_ZORDER) && (swp.hwndInsertBehind > HWNDOS_BOTTOM)) 2010 // if ((swp.fl & SWPOS_ZORDER) && (swp.hwndInsertBehind > HWNDOS_BOTTOM)) 2011 if ((swp.hwndInsertBehind > HWNDOS_BOTTOM)) 1997 2012 { 1998 Win32BaseWindow *wndBehind = Win32BaseWindow::GetWindowFromHandle(swp.hwndInsertBehind); 1999 swp.hwndInsertBehind = wndBehind->getOS2WindowHandle(); 2013 Win32BaseWindow *wndBehind = Win32BaseWindow::GetWindowFromHandle(swp.hwndInsertBehind); 2014 if(wndBehind) { 2015 swp.hwndInsertBehind = wndBehind->getOS2WindowHandle(); 2016 } 2017 else { 2018 dprintf(("ERROR: SetWindowPos: hwndInsertBehind %x invalid!",swp.hwndInsertBehind)); 2019 swp.hwndInsertBehind = 0; 2020 } 2000 2021 } 2022 #if 0 2001 2023 if (isFrameWindow()) 2002 2024 { … … 2015 2037 } 2016 2038 else 2017 swp.hwnd = OS2Hwnd; 2039 #endif 2040 swp.hwnd = OS2HwndFrame; 2018 2041 2019 2042 dprintf (("WinSetWindowPos %x %x (%d,%d)(%d,%d) %x", swp.hwnd, swp.hwndInsertBehind, swp.x, swp.y, swp.cx, swp.cy, swp.fl)); -
trunk/src/user32/win32wbase.h
r1265 r1281 1 /* $Id: win32wbase.h,v 1.2 1 1999-10-13 14:24:28sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.22 1999-10-14 09:22:42 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 61 61 virtual ~Win32BaseWindow(); 62 62 63 virtual ULONG MsgCreate(HWND hwnd OS2, ULONG initParam);63 virtual ULONG MsgCreate(HWND hwndFrame, HWND hwndClient); 64 64 ULONG MsgQuit(); 65 65 ULONG MsgClose(); … … 106 106 Win32WndClass *getWindowClass() { return windowClass; }; 107 107 108 BOOL isFrameWindow() { return OS2Hwnd != OS2HwndFrame; };108 BOOL isFrameWindow(); 109 109 virtual BOOL isMDIClient(); 110 110 … … 242 242 243 243 BOOL isIcon; 244 BOOL fCreated;245 244 BOOL fFirstShow; 246 245 BOOL fIsDialog; 247 246 BOOL fInternalMsg; //Used to distinguish between messages 248 247 //sent by PM and those sent by apps 248 BOOL fNoSizeMsg; 249 249 250 250 PVOID pOldFrameProc; … … 266 266 RECT rectWindow; 267 267 RECT rectClient; 268 269 CREATESTRUCTA *tmpcs; //temporary pointer to CREATESTRUCT used in CreateWindowEx 270 ULONG sw; //set in CreateWindowExA, used in MsgCreate method 268 271 269 272 SCROLLBAR_INFO *vertScrollInfo; -
trunk/src/user32/winprop.cpp
r1231 r1281 1 /* $Id: winprop.cpp,v 1. 3 1999-10-09 18:16:58sandervl Exp $ */1 /* $Id: winprop.cpp,v 1.4 1999-10-14 09:22:43 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Property apis for OS/2 … … 114 114 #ifdef DEBUG 115 115 if(HIWORD(arg2) != 0) 116 dprintf(("USER32: RemovePropA % S\n", arg2));116 dprintf(("USER32: RemovePropA %s\n", arg2)); 117 117 else dprintf(("USER32: RemovePropA %X\n", arg2)); 118 118 #endif 119 return O32_RemoveProp(window->get WindowHandle(), arg2);119 return O32_RemoveProp(window->getOS2WindowHandle(), arg2); 120 120 } 121 121 //****************************************************************************** … … 150 150 #ifdef DEBUG 151 151 if(HIWORD(arg2) != 0) 152 dprintf(("USER32: SetPropA % Sto %x\n", arg2, arg3));152 dprintf(("USER32: SetPropA %s to %x\n", arg2, arg3)); 153 153 else dprintf(("USER32: SetPropA %X to %x\n", arg2, arg3)); 154 154 #endif 155 return O32_SetProp(window->get WindowHandle(), arg2, arg3);155 return O32_SetProp(window->getOS2WindowHandle(), arg2, arg3); 156 156 } 157 157 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.