Changeset 3488 for trunk/src/user32/user32.cpp
- Timestamp:
- May 3, 2000, 8:35:56 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/user32.cpp
r3482 r3488 1 /* $Id: user32.cpp,v 1.7 8 2000-05-02 20:50:50sandervl Exp $ */1 /* $Id: user32.cpp,v 1.79 2000-05-03 18:35:52 sandervl Exp $ */ 2 2 3 3 /* … … 547 547 //****************************************************************************** 548 548 //****************************************************************************** 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 //******************************************************************************574 549 BOOL WIN32API SetDoubleClickTime( UINT uInterval) 575 550 { … … 888 863 break; 889 864 case SPI_GETNONCLIENTMETRICS: 865 { 890 866 memset(cmetric, 0, sizeof(NONCLIENTMETRICSA)); 891 867 cmetric->cbSize = sizeof(NONCLIENTMETRICSA); 892 868 869 #if 0 893 870 //CB: fonts not handled by Open32, set to WarpSans 894 871 lstrcpyA(cmetric->lfSmCaptionFont.lfFaceName,"WarpSans"); … … 916 893 cmetric->iMenuWidth = 32; //TODO 917 894 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 919 935 case SPI_GETICONTITLELOGFONT: 920 936 { … … 1569 1585 WORD WIN32API VkKeyScanA( char ch) 1570 1586 { 1571 dprintf(("USER32: VkKeyScanA\n"));1587 dprintf(("USER32: VkKeyScanA %x", ch)); 1572 1588 return O32_VkKeyScan(ch); 1573 1589 } … … 1576 1592 WORD WIN32API VkKeyScanW( WCHAR wch) 1577 1593 { 1578 dprintf(("USER32: VkKeyScanW \n"));1594 dprintf(("USER32: VkKeyScanW %x", wch)); 1579 1595 // NOTE: This will not work as is (needs UNICODE support) 1580 1596 return O32_VkKeyScan((char)wch); … … 1689 1705 int WIN32API FrameRect( HDC hDC, const RECT * lprc, HBRUSH hbr) 1690 1706 { 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)); 1692 1708 return O32_FrameRect(hDC,lprc,hbr); 1693 1709 }
Note:
See TracChangeset
for help on using the changeset viewer.