Ignore:
Timestamp:
Oct 16, 1999, 12:28:31 PM (26 years ago)
Author:
sandervl
Message:

groupbox redraw + setpos fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32wbase.cpp

    r1311 r1314  
    1 /* $Id: win32wbase.cpp,v 1.45 1999-10-15 13:52:54 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.46 1999-10-16 10:28:31 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    258258        return 0;
    259259  }
     260#ifdef DEBUG
     261  if(HIWORD(cs->lpszClass))
     262  {
     263        char *astring;
     264
     265        if(isUnicode) astring = UnicodeToAsciiString((LPWSTR)cs->lpszClass);
     266        else          astring = (char *)cs->lpszClass;
     267
     268        dprintf(("Window class %s", astring));
     269        if(isUnicode) FreeAsciiString(astring);
     270  }
     271  else  dprintf(("Window class %x", cs->lpszClass));
     272#endif
    260273
    261274  /* Fix the lpszClass field: from existing programs, it seems ok to call a CreateWindowXXX
     
    519532//        OS2HwndFrame = hwndClient;
    520533
     534  fNoSizeMsg = TRUE;
     535
    521536  if(OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32WNDPTR, (ULONG)this) == FALSE) {
    522537        dprintf(("WM_CREATE: WinSetWindowULong %X failed!!", OS2Hwnd));
     
    573588//  SetFakeOpen32();
    574589
     590  //Set icon from class
     591  if(windowClass->getIcon())
     592        SetIcon(windowClass->getIcon());
     593
    575594  /* Set the window menu */
    576595  if ((dwStyle & (WS_CAPTION | WS_CHILD)) == WS_CAPTION )
     
    589608        setWindowId((DWORD)cs->hMenu);
    590609  }
    591 
    592   //Set icon from class
    593   if(windowClass->getIcon())
    594         SetIcon(windowClass->getIcon());
    595610
    596611  //Subclass frame
     
    608623  maxPos.x = rectWindow.left; maxPos.y = rectWindow.top;
    609624
    610   fNoSizeMsg = TRUE;
    611625  if(getParent()) {
    612626        SetWindowPos(getParent()->getWindowHandle(), rectClient.left, rectClient.top,
Note: See TracChangeset for help on using the changeset viewer.