Ignore:
Timestamp:
Apr 23, 2003, 8:01:01 PM (22 years ago)
Author:
sandervl
Message:

KSO: Properties allocated from shared memory & Fake window updates & SW_SHOWDEFAULT update

File:
1 edited

Legend:

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

    r10008 r10031  
    1 /* $Id: pmwindow.cpp,v 1.208 2003-04-11 10:55:02 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.209 2003-04-23 18:00:59 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    3131#include <dbglog.h>
    3232#include <win32wbase.h>
     33#include <win32wfake.h>
    3334#include <win32dlg.h>
    3435#include "win32wdesktop.h"
     
    884885        {
    885886                win32wnd->DispatchMsgA(pWinMsg);
    886                 if(WinQueryUpdateRect(hwnd, NULL) == TRUE) 
     887                if(WinQueryUpdateRect(hwnd, NULL) == TRUE)
    887888                {//the application didn't validate the update region; Windows
    888889                 //will only send a WM_PAINT once until another part of the
     
    10181019            break;
    10191020        }
    1020  
     1021
    10211022        ULONG ulBytes, cItems;
    10221023        char *pszFiles;
     
    10361037        else {
    10371038            rc = (MRFROM2SHORT (DOR_NEVERDROP, 0));
    1038         } 
     1039        }
    10391040        break;
    10401041    }
     
    12721273    {
    12731274        //ignore this message. don't forward it to the default PM frame window handler
    1274         //as that one sends it to the client. as a result we end up translating 
     1275        //as that one sends it to the client. as a result we end up translating
    12751276        //it twice
    12761277        break;
     
    13661367                 DWORD dwOldStyle = win32wnd->getOldStyle();
    13671368                 DWORD dwStyle    = win32wnd->getStyle();
    1368    
     1369
    13691370                 win32wnd->setOldStyle(dwStyle);
    13701371                 if((dwOldStyle & WS_MINIMIZE_W) && !(dwStyle & WS_MINIMIZE_W)) {
     
    15531554                WinShowWindow(win32wnd->getOS2WindowHandle(), 0);
    15541555            }
    1555             if(pswp->fl & (SWP_SHOW|SWP_HIDE)) 
     1556            if(pswp->fl & (SWP_SHOW|SWP_HIDE))
    15561557            {//TODO: necessary for more options? (activate?)
    15571558                if(win32wnd->CanReceiveSizeMsgs())
     
    19481949        //result will be illegal. Btw we do not honour PM border size settings
    19491950        //and never will. I was unable to figure out why only X coordinate
    1950         //is being broken but not Y as well. 
    1951 
    1952         if ((pswp->fl & SWP_MAXIMIZE) == SWP_MAXIMIZE) 
     1951        //is being broken but not Y as well.
     1952
     1953        if ((pswp->fl & SWP_MAXIMIZE) == SWP_MAXIMIZE)
    19531954        {
    19541955            RECT rect;
     
    20912092    SetWin32TIB();
    20922093
    2093     //We can't query the window object directly from this window as it's not the
    2094     //real thing. There should be a genuine win32 child window which we can use.
    2095     HWND hwndChild = WinQueryWindow(hwnd, QW_TOP);
    2096 
    2097     win32wndchild = Win32BaseWindow::GetWindowFromOS2FrameHandle(hwndChild);
    2098     if(win32wndchild == NULL) {
    2099         DebugInt3();
    2100         goto RunDefWndProc;
    2101     }
    2102     //now get the parent window object
    2103     win32wnd = Win32BaseWindow::GetWindowFromHandle(GetParent(win32wndchild->getWindowHandle()));
    2104     if(win32wndchild) RELEASE_WNDOBJ(win32wndchild);
    2105 
     2094    win32wnd = Win32FakeWindow::GetWindowFromOS2Handle(hwnd);
    21062095    if(win32wnd == NULL) {
    21072096        DebugInt3();
     
    22072196//******************************************************************************
    22082197//******************************************************************************
    2209 static char *PMDragExtractFiles(PDRAGINFO pDragInfo, ULONG *pcItems, ULONG *pulBytes) 
     2198static char *PMDragExtractFiles(PDRAGINFO pDragInfo, ULONG *pcItems, ULONG *pulBytes)
    22102199{
    22112200    PDRAGITEM pDragItem;
     
    22252214
    22262215    //computer memory required to hold all filenames
    2227     int bufsize = 0;       
     2216    int bufsize = 0;
    22282217    for (i = 0; i < cItems; i++) {
    22292218        pDragItem = DrgQueryDragitemPtr(pDragInfo, i);
     
    22402229        goto failure;
    22412230    }
    2242     memset(pszFiles, 0, bufsize); 
     2231    memset(pszFiles, 0, bufsize);
    22432232
    22442233    pszCurFile = pszFiles;
     
    22852274//******************************************************************************
    22862275//******************************************************************************
    2287 static BOOL PMDragValidate(PDRAGINFO pDragInfo) 
     2276static BOOL PMDragValidate(PDRAGINFO pDragInfo)
    22882277{
    22892278    PDRAGITEM pDragItem;
     
    23242313
    23252314        dprintf(("dropped file %s%s", szContainerName, szFileName));
    2326         break; 
     2315        break;
    23272316    }
    23282317
     
    23472336failure:
    23482337    DrgFreeDraginfo(pDragInfo);
    2349     return FALSE;   
     2338    return FALSE;
    23502339}
    23512340
     
    23762365{
    23772366    static char szSWPFlags[512];
    2378  
     2367
    23792368    szSWPFlags[0] = 0;
    23802369
     
    24022391    if(flags & SWP_ACTIVATE) {
    24032392        strcat(szSWPFlags, "SWP_ACTIVATE ");
    2404     }                                   
     2393    }
    24052394    if(flags & SWP_DEACTIVATE) {
    24062395        strcat(szSWPFlags, "SWP_DEACTIVATE ");
Note: See TracChangeset for help on using the changeset viewer.