Changeset 321 for trunk/src/user32/new/oslibwin.cpp
- Timestamp:
- Jul 17, 1999, 1:56:51 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/oslibwin.cpp
r319 r321 1 /* $Id: oslibwin.cpp,v 1. 5 1999-07-17 09:17:58sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.6 1999-07-17 11:52:22 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 14 14 #include <os2.h> 15 15 #include <os2wrap.h> 16 #include <stdlib.h> 17 #include <string.h> 18 16 19 #include <misc.h> 17 20 #include <oslibwin.h> 18 21 #include "oslibstyle.h" 19 22 #include "oslibutil.h" 23 #include "oslibmsg.h" 20 24 #include "pmwindow.h" 21 25 … … 141 145 //****************************************************************************** 142 146 //****************************************************************************** 143 HWND OSLibWinQuery TopMostChildWindow(HWND hwndParent)144 { 145 return WinQueryWindow(hwnd Parent, QW_TOP);147 HWND OSLibWinQueryWindow(HWND hwnd, ULONG lCode) 148 { 149 return WinQueryWindow(hwnd, lCode); 146 150 } 147 151 //****************************************************************************** … … 189 193 //****************************************************************************** 190 194 //****************************************************************************** 195 BOOL OSLibWinSetActiveWindow(HWND hwnd) 196 { 197 return WinSetActiveWindow(HWND_DESKTOP, hwnd); 198 } 199 //****************************************************************************** 200 //****************************************************************************** 201 BOOL OSLibWinSetFocus(HWND hwnd) 202 { 203 return WinSetFocus(HWND_DESKTOP, hwnd); 204 } 205 //****************************************************************************** 206 //****************************************************************************** 207 BOOL OSLibWinEnableWindow(HWND hwnd, BOOL fEnable) 208 { 209 return WinEnableWindow(hwnd, fEnable); 210 } 211 //****************************************************************************** 212 //****************************************************************************** 213 BOOL OSLibWinIsWindowEnabled(HWND hwnd) 214 { 215 return WinIsWindowEnabled(hwnd); 216 } 217 //****************************************************************************** 218 //****************************************************************************** 219 BOOL OSLibWinIsWindowVisible(HWND hwnd) 220 { 221 return WinIsWindowVisible(hwnd); 222 } 223 //****************************************************************************** 224 //****************************************************************************** 225 BOOL OSLibWinQueryActiveWindow() 226 { 227 return WinQueryActiveWindow(HWND_DESKTOP); 228 } 229 //****************************************************************************** 230 //****************************************************************************** 231 void OSLibWinPostQuitMessage(ULONG nExitCode) 232 { 233 WinPostQueueMsg(GetThreadMessageQueue(), WM_QUIT, (MPARAM)nExitCode, 0); 234 } 235 //****************************************************************************** 236 //****************************************************************************** 237 LONG OSLibWinDispatchMsg(MSG *msg, BOOL isUnicode) 238 { 239 QMSG qmsg; 240 241 WinToOS2MsgTranslate(msg, &qmsg, isUnicode); 242 return (LONG)WinDispatchMsg(GetThreadHAB(), &qmsg); 243 } 244 //****************************************************************************** 245 //****************************************************************************** 246 BOOL OSLibWinGetMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax, BOOL isUnicode) 247 { 248 QMSG qmsg; 249 BOOL rc; 250 251 rc = WinGetMsg(GetThreadHAB(), &qmsg, TranslateWinMsg(uMsgFilterMin), TranslateWinMsg(uMsgFilterMax), 0); 252 OS2ToWinMsgTranslate(&qmsg, pMsg, isUnicode); 253 return rc; 254 } 255 //****************************************************************************** 256 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.