Ignore:
Timestamp:
Apr 24, 2002, 10:56:17 AM (23 years ago)
Author:
sandervl
Message:

PF: listbox fix when button clicked outside control (rollup dropdown); minimize fixes (activation + z-order)

File:
1 edited

Legend:

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

    r8126 r8301  
    1 /* $Id: oslibwin.cpp,v 1.117 2002-03-27 10:56:24 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.118 2002-04-24 08:56:17 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    542542BOOL OSLibWinMinimizeWindow(HWND hwnd)
    543543{
    544   return WinSetWindowPos(hwnd, 0, 0, 0, 0, 0, SWP_MINIMIZE);
     544 /* @@PF The reason for this weird minimize algorithm is that we are not fully
     545    using PM for minimization. I.e. we respect all PM messages yet we do mess
     546    so much with some messages that minimization is based partly on vodoo.
     547    That is if you try minimize and deactivate in one call it will fail.
     548    Here we deactivate yourselves and give focus to next window that is
     549    on desktop, this func also works with MDI */
     550
     551    BOOL rc;
     552
     553    rc = WinSetWindowPos(hwnd, 0, 0, 0, 0, 0, SWP_MINIMIZE);
     554    if (rc) {
     555        rc = WinSetWindowPos(hwnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_DEACTIVATE | SWP_ZORDER);
     556    }
     557    return (rc);
    545558}
    546559//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.