Ignore:
Timestamp:
Jul 20, 1999, 9:42:36 AM (26 years ago)
Author:
sandervl
Message:

Accelerator support (not working) + bugfixes

File:
1 edited

Legend:

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

    r340 r342  
    1 /* $Id: oslibwin.cpp,v 1.16 1999-07-19 18:40:43 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.17 1999-07-20 07:42:35 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    149149//******************************************************************************
    150150//******************************************************************************
     151BOOL 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//******************************************************************************
    151165BOOL OSLibWinAlarm(HWND hwndDeskTop,ULONG flStyle)
    152166{
     
    333347//******************************************************************************
    334348//******************************************************************************
    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 //******************************************************************************
    361349LONG OSLibWinQueryWindowTextLength(HWND hwnd)
    362350{
Note: See TracChangeset for help on using the changeset viewer.