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

Several updates/bug fixes

File:
1 edited

Legend:

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

    r2371 r2383  
    1 /* $Id: oslibwin.cpp,v 1.57 2000-01-08 14:15:06 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.58 2000-01-09 14:37:09 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    175175  else
    176176  {
    177     if((dwStyle & WS_CAPTION_W) == WS_DLGFRAME_W)
     177    if((dwStyle & WS_CAPTION_W) == WS_DLGFRAME_W) {
    178178        *OSFrameStyle |= FCF_DLGBORDER;
     179        *borderHeight = *borderWidth = 2; //TODO: Correct?
     180    }
    179181    else
    180182    {
    181         if((dwStyle & WS_CAPTION_W) == WS_CAPTION_W)
     183        if((dwStyle & WS_CAPTION_W) == WS_CAPTION_W) {
    182184            *OSFrameStyle |= (FCF_TITLEBAR | FCF_BORDER);
     185            *borderHeight = *borderWidth = 1;
     186        }
    183187        else
    184         if(dwStyle & WS_BORDER_W)
     188        if(dwStyle & WS_BORDER_W) {
    185189            *OSFrameStyle |= FCF_BORDER;
     190            *borderHeight = *borderWidth = 1;
     191        }
    186192    }
    187193
     
    191197          *OSFrameStyle |= FCF_HORZSCROLL;
    192198
    193     if(dwStyle & WS_SYSMENU_W)
    194           *OSFrameStyle |= FCF_SYSMENU;
    195199    if(dwStyle & WS_THICKFRAME_W)
    196200          *OSFrameStyle |= FCF_SIZEBORDER;        //??
     
    198202    //SvL: We subclass the titlebar control when win32 look is selected
    199203    if(fOS2Look) {
     204        if(dwStyle & WS_SYSMENU_W)
     205          *OSFrameStyle |= FCF_SYSMENU;
    200206        if(dwStyle & WS_MINIMIZEBOX_W)
    201207          *OSFrameStyle |= FCF_MINBUTTON;
     
    11651171//******************************************************************************
    11661172//******************************************************************************
     1173HWND OSLibWinGetFrameControlHandle(HWND hwndFrame, int framecontrol, RECT *lpRect)
     1174{
     1175    switch(framecontrol) {
     1176    case OSLIB_FID_TITLEBAR:
     1177        framecontrol = FID_TITLEBAR;
     1178        break;
     1179    case OSLIB_FID_SYSMENU:
     1180        framecontrol = FID_SYSMENU;
     1181        break;
     1182    case OSLIB_FID_MENU:
     1183        framecontrol = FID_MENU;
     1184        break;
     1185    default:
     1186        return 0;
     1187    }
     1188    return WinWindowFromID(hwndFrame, framecontrol);
     1189}
     1190//******************************************************************************
     1191//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.