Ignore:
Timestamp:
May 3, 2000, 8:35:56 PM (25 years ago)
Author:
sandervl
Message:

capture changes/fixes, SetWindowPos fix

File:
1 edited

Legend:

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

    r3482 r3488  
    1 /* $Id: user32.cpp,v 1.78 2000-05-02 20:50:50 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.79 2000-05-03 18:35:52 sandervl Exp $ */
    22
    33/*
     
    547547//******************************************************************************
    548548//******************************************************************************
    549 BOOL WIN32API ReleaseCapture(void)
    550 {
    551     dprintf(("USER32:  ReleaseCapture"));
    552     return O32_ReleaseCapture();
    553 }
    554 //******************************************************************************
    555 //******************************************************************************
    556 HWND WIN32API GetCapture(void)
    557 {
    558  HWND hwnd;
    559 
    560     hwnd = Win32Window::OS2ToWin32Handle(O32_GetCapture());
    561     dprintf(("USER32: GetCapture returned %x", hwnd));
    562     return hwnd;
    563 }
    564 //******************************************************************************
    565 //******************************************************************************
    566 HWND WIN32API SetCapture( HWND hwnd)
    567 {
    568     dprintf(("USER32: SetCapture %x", hwnd));
    569     hwnd = Win32Window::Win32ToOS2Handle(hwnd);
    570     return Win32Window::OS2ToWin32Handle(O32_SetCapture(hwnd));
    571 }
    572 //******************************************************************************
    573 //******************************************************************************
    574549BOOL WIN32API SetDoubleClickTime( UINT uInterval)
    575550{
     
    888863        break;
    889864    case SPI_GETNONCLIENTMETRICS:
     865    {
    890866        memset(cmetric, 0, sizeof(NONCLIENTMETRICSA));
    891867        cmetric->cbSize = sizeof(NONCLIENTMETRICSA);
    892868
     869#if 0
    893870        //CB: fonts not handled by Open32, set to WarpSans
    894871        lstrcpyA(cmetric->lfSmCaptionFont.lfFaceName,"WarpSans");
     
    916893        cmetric->iMenuWidth       = 32; //TODO
    917894        cmetric->iMenuHeight      = GetSystemMetrics(SM_CYMENU);
    918         break;
     895#else
     896        SystemParametersInfoA(SPI_GETICONTITLELOGFONT, 0, (LPVOID)&(cmetric->lfSmCaptionFont),0);
     897
     898        SystemParametersInfoA(SPI_GETICONTITLELOGFONT, 0, (LPVOID)&(cmetric->lfCaptionFont),0);
     899        cmetric->lfCaptionFont.lfWeight = FW_BOLD;
     900
     901        LPLOGFONTA lpLogFont = &(cmetric->lfMenuFont);
     902        GetProfileStringA("Desktop", "MenuFont", "MS Sans Serif",
     903                          lpLogFont->lfFaceName, LF_FACESIZE);
     904
     905        lpLogFont->lfHeight = -GetProfileIntA("Desktop","MenuFontSize", 12);
     906        lpLogFont->lfWidth = 0;
     907        lpLogFont->lfEscapement = lpLogFont->lfOrientation = 0;
     908        lpLogFont->lfWeight = FW_BOLD;
     909        lpLogFont->lfItalic = FALSE;
     910        lpLogFont->lfStrikeOut = FALSE;
     911        lpLogFont->lfUnderline = FALSE;
     912        lpLogFont->lfCharSet = ANSI_CHARSET;
     913        lpLogFont->lfOutPrecision = OUT_DEFAULT_PRECIS;
     914        lpLogFont->lfClipPrecision = CLIP_DEFAULT_PRECIS;
     915        lpLogFont->lfPitchAndFamily = DEFAULT_PITCH | FF_SWISS;
     916
     917        SystemParametersInfoA(SPI_GETICONTITLELOGFONT, 0,
     918                              (LPVOID)&(cmetric->lfStatusFont),0);
     919        SystemParametersInfoA(SPI_GETICONTITLELOGFONT, 0,
     920                              (LPVOID)&(cmetric->lfMessageFont),0);
     921
     922        cmetric->iBorderWidth     = GetSystemMetrics(SM_CXBORDER);
     923        cmetric->iScrollWidth     = GetSystemMetrics(SM_CXHSCROLL);
     924        cmetric->iScrollHeight    = GetSystemMetrics(SM_CYHSCROLL);
     925        cmetric->iCaptionWidth    = 32; //TODO
     926        cmetric->iCaptionHeight   = 32; //TODO
     927        cmetric->iSmCaptionWidth  = GetSystemMetrics(SM_CXSMSIZE);
     928        cmetric->iSmCaptionHeight = GetSystemMetrics(SM_CYSMSIZE);
     929        cmetric->iMenuHeight      = GetSystemMetrics(SM_CYMENU);
     930        cmetric->iMenuWidth       = cmetric->iMenuHeight; //TODO
     931#endif
     932        break;
     933    }
     934
    919935    case SPI_GETICONTITLELOGFONT:
    920936    {
     
    15691585WORD WIN32API VkKeyScanA( char ch)
    15701586{
    1571     dprintf(("USER32:  VkKeyScanA\n"));
     1587    dprintf(("USER32: VkKeyScanA %x", ch));
    15721588    return O32_VkKeyScan(ch);
    15731589}
     
    15761592WORD WIN32API VkKeyScanW( WCHAR wch)
    15771593{
    1578     dprintf(("USER32:  VkKeyScanW\n"));
     1594    dprintf(("USER32:  VkKeyScanW %x", wch));
    15791595    // NOTE: This will not work as is (needs UNICODE support)
    15801596    return O32_VkKeyScan((char)wch);
     
    16891705int WIN32API FrameRect( HDC hDC, const RECT * lprc, HBRUSH  hbr)
    16901706{
    1691     dprintf(("USER32:  FrameRect"));
     1707    dprintf(("USER32: FrameRect %x (%d,%d)(%d,%d) brush %x", hDC, lprc->top, lprc->left, lprc->bottom, lprc->right, hbr));
    16921708    return O32_FrameRect(hDC,lprc,hbr);
    16931709}
Note: See TracChangeset for help on using the changeset viewer.