Ignore:
Timestamp:
Nov 11, 1999, 2:17:33 PM (26 years ago)
Author:
sandervl
Message:

dlg fix, keyboard additions, + misc other things

File:
1 edited

Legend:

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

    r1671 r1704  
    1 /* $Id: user32.cpp,v 1.52 1999-11-09 19:23:16 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.53 1999-11-11 13:17:30 sandervl Exp $ */
    22
    33/*
     
    10381038/* Help Functions */
    10391039
    1040 DWORD WIN32API GetWindowContextHelpId(HWND hwnd)
    1041 {
    1042 #ifdef DEBUG
    1043   WriteLog("USER32:  GetWindowContextHelpId, not implemented\n");
    1044 #endif
    1045   hwnd = Win32Window::Win32ToOS2Handle(hwnd);
    1046 
    1047   return(0);
    1048 }
    1049 //******************************************************************************
    1050 //******************************************************************************
    1051 BOOL WIN32API SetWindowContextHelpId(HWND hwnd, DWORD dwContextHelpId)
    1052 {
    1053 #ifdef DEBUG
    1054   WriteLog("USER32:  SetWindowContextHelpId, not implemented\n");
    1055 #endif
    1056   hwnd = Win32Window::Win32ToOS2Handle(hwnd);
    1057 
    1058   return(TRUE);
    1059 }
    1060 //******************************************************************************
    1061 //******************************************************************************
    10621040BOOL WIN32API WinHelpA( HWND hwnd, LPCSTR lpszHelp, UINT uCommand, DWORD  dwData)
    10631041{
     
    11231101{
    11241102  return (GetOEMCP());
    1125 }
    1126 /*****************************************************************************
    1127  * Name      : BOOL WIN32API GetKeyboardLayoutNameA
    1128  * Purpose   : The GetKeyboardLayoutName function retrieves the name of the
    1129  *             active keyboard layout.
    1130  * Parameters: LPTSTR pwszKLID address of buffer for layout name
    1131  * Variables :
    1132  * Result    : If the function succeeds, the return value is TRUE.
    1133  *             If the function fails, the return value is FALSE. To get extended
    1134  *               error information, call GetLastError.
    1135  * Remark    :
    1136  * Status    : UNTESTED STUB
    1137  *
    1138  * Author    : Patrick Haller [Thu, 1998/02/26 11:55]
    1139  *****************************************************************************/
    1140 // @@@PH Win32 BOOL's are casted to INTs
    1141 INT WIN32API GetKeyboardLayoutNameA(LPTSTR pwszKLID)
    1142 {
    1143   dprintf(("USER32:GetKeyboardLayoutNameA (%08x) not implemented.",
    1144          pwszKLID));
    1145 
    1146   return(FALSE);
    1147 }
    1148 //******************************************************************************
    1149 //******************************************************************************
    1150 int WIN32API GetKeyboardLayoutList(int nBuff, HKL *lpList)
    1151 {
    1152   dprintf(("USER32:  GetKeyboardLayoutList, not implemented\n"));
    1153   return(0);
    1154 }
    1155 //******************************************************************************
    1156 //******************************************************************************
    1157 HKL WIN32API GetKeyboardLayout(DWORD dwLayout)
    1158 {
    1159 #ifdef DEBUG
    1160   WriteLog("USER32:  GetKeyboardLayout, not implemented\n");
    1161 #endif
    1162   return(0);
    1163 }
    1164 /*****************************************************************************
    1165  * Name      : BOOL WIN32API GetKeyboardLayoutNameW
    1166  * Purpose   : The GetKeyboardLayoutName function retrieves the name of the
    1167  *             active keyboard layout.
    1168  * Parameters: LPTSTR pwszKLID address of buffer for layout name
    1169  * Variables :
    1170  * Result    : If the function succeeds, the return value is TRUE.
    1171  *             If the function fails, the return value is FALSE. To get extended
    1172  *               error information, call GetLastError.
    1173  * Remark    :
    1174  * Status    : UNTESTED STUB
    1175  *
    1176  * Author    : Patrick Haller [Thu, 1998/02/26 11:55]
    1177  *****************************************************************************/
    1178 // @@@PH Win32 BOOL's are casted to INTs
    1179 INT WIN32API GetKeyboardLayoutNameW(LPWSTR pwszKLID)
    1180 {
    1181   dprintf(("USER32:GetKeyboardLayoutNameW (%08x) not implemented.",
    1182          pwszKLID));
    1183 
    1184   return(FALSE);
    1185 }
    1186 //******************************************************************************
    1187 //******************************************************************************
    1188 BOOL WIN32API GetKeyboardState(PBYTE lpKeyState)
    1189 {
    1190 #ifdef DEBUG
    1191   WriteLog("USER32:  GetKeyboardState, not properly implemented\n");
    1192 #endif
    1193   memset(lpKeyState, 0, 256);
    1194   return(TRUE);
    11951103}
    11961104//******************************************************************************
     
    14091317#endif
    14101318  hwnd = Win32Window::Win32ToOS2Handle(hwnd);
    1411   return(TRUE);
    1412 }
    1413 //******************************************************************************
    1414 //******************************************************************************
    1415 BOOL WIN32API SetKeyboardState(PBYTE lpKeyState)
    1416 {
    1417 #ifdef DEBUG
    1418   WriteLog("USER32:  SetKeyboardState, not implemented\n");
    1419 #endif
    14201319  return(TRUE);
    14211320}
     
    17131612  return (FALSE);
    17141613}
    1715 //******************************************************************************
    1716 //******************************************************************************
    1717 HWND WIN32API GetForegroundWindow(void)
    1718 {
    1719 #ifdef DEBUG
    1720     WriteLog("USER32:  GetForegroundWindow\n");
    1721 #endif
    1722     return Win32Window::OS2ToWin32Handle(O32_GetForegroundWindow());
    1723 }
    1724 //******************************************************************************
    1725 //******************************************************************************
    1726 HWND WIN32API GetLastActivePopup( HWND hWnd)
    1727 {
    1728 #ifdef DEBUG
    1729     WriteLog("USER32:  GetLastActivePopup\n");
    1730 #endif
    1731     hWnd = Win32Window::Win32ToOS2Handle(hWnd);
    1732 
    1733     return Win32Window::OS2ToWin32Handle(O32_GetLastActivePopup(hWnd));
    1734 }
    1735 //******************************************************************************
    1736 //******************************************************************************
    1737 DWORD WIN32API GetWindowThreadProcessId(HWND hWnd, PDWORD  lpdwProcessId)
    1738 {
    1739 #ifdef DEBUG
    1740     WriteLog("USER32:  GetWindowThreadProcessId\n");
    1741 #endif
    1742     hWnd = Win32Window::Win32ToOS2Handle(hWnd);
    1743 
    1744     return O32_GetWindowThreadProcessId(hWnd,lpdwProcessId);
    1745 }
    1746 
    1747 /* Painting and Drawing Functions */
    1748 
    1749 INT WIN32API ExcludeUpdateRgn( HDC hDC, HWND  hWnd)
    1750 {
    1751 #ifdef DEBUG
    1752     WriteLog("USER32:  ExcludeUpdateRgn\n");
    1753 #endif
    1754     hWnd = Win32Window::Win32ToOS2Handle(hWnd);
    1755 
    1756     return O32_ExcludeUpdateRgn(hDC,hWnd);
    1757 }
     1614
    17581615//******************************************************************************
    17591616//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.