Ignore:
Timestamp:
Oct 22, 2003, 2:43:14 PM (22 years ago)
Author:
sandervl
Message:

Use WC_FRAME for the Odin frame window and subclass it; Updates for new keyboard hook

File:
1 edited

Legend:

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

    r10275 r10284  
    1 /* $Id: oslibwin.cpp,v 1.144 2003-10-20 17:17:22 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.145 2003-10-22 12:43:13 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    66 * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl)
    77 * Copyright 1999 Daniela Engert (dani@ngrt.de)
    8  *
     8 * Copyright 2002-2003 Innotek Systemberatung GmbH
    99 *
    1010 * Project Odin Software License can be found in LICENSE.TXT
     
    3737#define WS_TOPMOST                 0x00200000L
    3838
     39//pmwindow.cpp
     40MRESULT EXPENTRY Win32FrameWindowProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
     41
    3942//******************************************************************************
    4043//******************************************************************************
     
    6467                          DWORD classStyle, HWND *hwndFrame)
    6568{
    66  HWND  hwndClient;
    67  ULONG dwFrameStyle = 0;
     69    HWND  hwndClient;
     70    ULONG dwFrameStyle = 0;
    6871
    6972    if(pszName && *pszName == 0) {
     
    98101    //    a window with WS_CLIPCHILDREN -> result: dialog window won't update groupbox background as groupbox only draws the border
    99102    *hwndFrame = WinCreateWindow(hwndParent,
    100                            WIN32_STDFRAMECLASS,
     103                           WC_FRAME,
    101104                           pszName, (dwWinStyle & ~WS_CLIPCHILDREN), 0, 0, 0, 0,
    102105                           Owner, (fHWND_BOTTOM) ? HWND_BOTTOM : HWND_TOP,
    103106                           id, (PVOID)&FCData, NULL);
    104107
     108    //We no longer register our own frame window class as there is code in PM
     109    //that makes assumptions about frame window class names.
     110    //Instead we subclass the frame window right after creating it.
     111    if(*hwndFrame) {
     112        WinSubclassWindow(*hwndFrame, Win32FrameWindowProc);
     113    }
    105114    if(fOS2Look && *hwndFrame) {
    106115        FCData.flCreateFlags = dwOSFrameStyle;
     
    118127    if (hwndParent == HWND_DESKTOP && *hwndFrame)
    119128       OSLibWinCreateInvisibleScroller(*hwndFrame, SBS_VERT);
    120 
    121129
    122130    if(hwndClient == 0) {
Note: See TracChangeset for help on using the changeset viewer.