Ignore:
Timestamp:
Apr 11, 2003, 5:22:34 PM (22 years ago)
Author:
sandervl
Message:

Tool windows don't have minimize or maximize buttons; always draw tool windows in win32 style as they are not compatible with PM frame controls

File:
1 edited

Legend:

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

    r9871 r10013  
    1 /* $Id: win32wbasenonclient.cpp,v 1.50 2003-02-28 09:56:00 sandervl Exp $ */
     1/* $Id: win32wbasenonclient.cpp,v 1.51 2003-04-11 15:22:34 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2 (non-client methods)
     
    906906  HBITMAP memBmp,oldBmp;
    907907
    908   if(fOS2Look) {
     908  //WS_EX_TOOLWINDOW is incompatible with the OS2Look (titlebar thinner + smaller font)
     909  if(fOS2Look && !(dwExStyle & WS_EX_TOOLWINDOW)) {
    909910      //Note: If no class icon *and* WS_EX_DLGMODALFRAME -> no system menu
    910911      if((dwStyle & WS_SYSMENU) && !(dwExStyle & WS_EX_TOOLWINDOW) &&
     
    10141015    }
    10151016
    1016     if ((dwStyle & WS_MAXIMIZEBOX) || (dwStyle & WS_MINIMIZEBOX))
     1017    //Testing in NT4 shows that tool windows never have a minimize or maximize button!
     1018    if (((dwStyle & WS_MAXIMIZEBOX) || (dwStyle & WS_MINIMIZEBOX)) &&
     1019        !(dwExStyle & WS_EX_TOOLWINDOW))
    10171020    {
    10181021      /* In win95 the two buttons are always there */
Note: See TracChangeset for help on using the changeset viewer.