Changeset 342 for trunk/src/user32/new/oslibwin.cpp
- Timestamp:
- Jul 20, 1999, 9:42:36 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/oslibwin.cpp
r340 r342 1 /* $Id: oslibwin.cpp,v 1.1 6 1999-07-19 18:40:43sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.17 1999-07-20 07:42:35 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 149 149 //****************************************************************************** 150 150 //****************************************************************************** 151 BOOL OSLibWinSetAccelTable(HWND hwnd, PVOID acceltemplate) 152 { 153 HACCEL haccel; 154 HAB hab = WinQueryAnchorBlock(hwnd); 155 156 haccel = WinCreateAccelTable(hab, (PACCELTABLE)acceltemplate); 157 if(haccel == 0) { 158 dprintf(("OSLibWinSetAccelTable: WinCreateAccelTable returned 0")); 159 return FALSE; 160 } 161 return WinSetAccelTable(hab, haccel, hwnd); 162 } 163 //****************************************************************************** 164 //****************************************************************************** 151 165 BOOL OSLibWinAlarm(HWND hwndDeskTop,ULONG flStyle) 152 166 { … … 333 347 //****************************************************************************** 334 348 //****************************************************************************** 335 void OSLibWinPostQuitMessage(ULONG nExitCode)336 {337 WinPostQueueMsg(GetThreadMessageQueue(), WM_QUIT, (MPARAM)nExitCode, 0);338 }339 //******************************************************************************340 //******************************************************************************341 LONG OSLibWinDispatchMsg(MSG *msg, BOOL isUnicode)342 {343 QMSG qmsg;344 345 WinToOS2MsgTranslate(msg, &qmsg, isUnicode);346 return (LONG)WinDispatchMsg(GetThreadHAB(), &qmsg);347 }348 //******************************************************************************349 //******************************************************************************350 BOOL OSLibWinGetMsg(LPMSG pMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax, BOOL isUnicode)351 {352 QMSG qmsg;353 BOOL rc;354 355 rc = WinGetMsg(GetThreadHAB(), &qmsg, TranslateWinMsg(uMsgFilterMin), TranslateWinMsg(uMsgFilterMax), 0);356 OS2ToWinMsgTranslate(&qmsg, pMsg, isUnicode);357 return rc;358 }359 //******************************************************************************360 //******************************************************************************361 349 LONG OSLibWinQueryWindowTextLength(HWND hwnd) 362 350 {
Note:
See TracChangeset
for help on using the changeset viewer.