Ignore:
Timestamp:
Jan 8, 2000, 3:15:38 PM (26 years ago)
Author:
sandervl
Message:

OSLibGetMsg bugfix + WM_QUIT translation fix

File:
1 edited

Legend:

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

    r2294 r2371  
    1 /* $Id: win32wbase.cpp,v 1.132 2000-01-02 20:20:01 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.133 2000-01-08 14:15:08 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    3838#include "dc.h"
    3939#include "pmframe.h"
     40#include "pmtitlebar.h"
    4041#include "win32wdesktop.h"
    4142#include "pmwindow.h"
     
    136137void Win32BaseWindow::Init()
    137138{
    138   isUnicode        = FALSE;
    139   fIsSubclassedOS2Wnd = FALSE;
    140   fFirstShow       = TRUE;
    141   fIsDialog        = FALSE;
    142   fIsModalDialogOwner = FALSE;
    143   OS2HwndModalDialog  = 0;
    144   fInternalMsg     = FALSE;
    145   fNoSizeMsg       = FALSE;
    146   fIsDestroyed     = FALSE;
     139  isUnicode            = FALSE;
     140  fIsSubclassedOS2Wnd  = FALSE;
     141  fFirstShow           = TRUE;
     142  fIsDialog            = FALSE;
     143  fIsModalDialogOwner  = FALSE;
     144  OS2HwndModalDialog   = 0;
     145  fInternalMsg         = FALSE;
     146  fNoSizeMsg           = FALSE;
     147  fIsDestroyed         = FALSE;
    147148  fDestroyWindowCalled = FALSE;
    148   fCreated         = FALSE;
    149   fTaskList        = FALSE;
    150   fParentDC        = FALSE;
     149  fCreated             = FALSE;
     150  fTaskList            = FALSE;
     151  fParentDC            = FALSE;
     152  fDefWndProcCalled    = FALSE;
    151153
    152154  windowNameA      = NULL;
     
    180182  contextHelpId    = 0;
    181183
    182   pOldFrameProc = NULL;
     184  pOldFrameProc    = NULL;
     185  pOldTitleBarProc = NULL;
     186  pOldMenuProc     = NULL;
     187
    183188  borderWidth   = 0;
    184189  borderHeight  = 0;
     
    639644  FrameGetScrollBarHandles(this,dwStyle & WS_HSCROLL,dwStyle & WS_VSCROLL);
    640645  subclassScrollBars(dwStyle & WS_HSCROLL,dwStyle & WS_VSCROLL);
     646
     647  FrameSubclassTitleBar(this);
    641648
    642649  fakeWinBase.hwndThis     = OS2Hwnd;
     
    10571064    }
    10581065
    1059     //TODO: hiword should be 0 if window enters menu mode (SDK docs)
    1060     SendInternalMessageA(WM_SETCURSOR, Win32Hwnd, MAKELONG(lastHitTestVal, msg->message));
     1066    //SvL: Correct??
     1067    if(msg->message != WM_NCMOUSEMOVE) {
     1068        //TODO: hiword should be 0 if window enters menu mode (SDK docs)
     1069        SendInternalMessageA(WM_SETCURSOR, Win32Hwnd, MAKELONG(lastHitTestVal, msg->message));
     1070    }
    10611071
    10621072    //translated message == WM_(NC)MOUSEMOVE
     
    15431553LRESULT Win32BaseWindow::DefWindowProcA(UINT Msg, WPARAM wParam, LPARAM lParam)
    15441554{
     1555    fDefWndProcCalled = TRUE;
    15451556    switch(Msg)
    15461557    {
    15471558    case WM_CLOSE:
    1548     dprintf(("DefWindowProcA: WM_CLOSE %x", getWindowHandle()));
     1559        dprintf(("DefWindowProcA: WM_CLOSE %x", getWindowHandle()));
    15491560        DestroyWindow();
    15501561        return 0;
     
    19361947LRESULT Win32BaseWindow::DefWindowProcW(UINT Msg, WPARAM wParam, LPARAM lParam)
    19371948{
     1949    fDefWndProcCalled = TRUE;
     1950
    19381951    switch(Msg)
    19391952    {
Note: See TracChangeset for help on using the changeset viewer.