Ignore:
Timestamp:
Jul 17, 1999, 1:56:51 PM (26 years ago)
Author:
sandervl
Message:

* empty log message *

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:58 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.6 1999-07-17 11:52:22 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    1414#include <os2.h>
    1515#include <os2wrap.h>
     16#include <stdlib.h>
     17#include <string.h>
     18
    1619#include <misc.h>
    1720#include <oslibwin.h>
    1821#include "oslibstyle.h"
    1922#include "oslibutil.h"
     23#include "oslibmsg.h"
    2024#include "pmwindow.h"
    2125
     
    141145//******************************************************************************
    142146//******************************************************************************
    143 HWND OSLibWinQueryTopMostChildWindow(HWND hwndParent)
    144 {
    145   return WinQueryWindow(hwndParent, QW_TOP);
     147HWND OSLibWinQueryWindow(HWND hwnd, ULONG lCode)
     148{
     149  return WinQueryWindow(hwnd, lCode);
    146150}
    147151//******************************************************************************
     
    189193//******************************************************************************
    190194//******************************************************************************
     195BOOL OSLibWinSetActiveWindow(HWND hwnd)
     196{
     197  return WinSetActiveWindow(HWND_DESKTOP, hwnd);
     198}
     199//******************************************************************************
     200//******************************************************************************
     201BOOL OSLibWinSetFocus(HWND hwnd)
     202{
     203  return WinSetFocus(HWND_DESKTOP, hwnd);
     204}
     205//******************************************************************************
     206//******************************************************************************
     207BOOL OSLibWinEnableWindow(HWND hwnd, BOOL fEnable)
     208{
     209  return WinEnableWindow(hwnd, fEnable);
     210}
     211//******************************************************************************
     212//******************************************************************************
     213BOOL OSLibWinIsWindowEnabled(HWND hwnd)
     214{
     215  return WinIsWindowEnabled(hwnd);
     216}
     217//******************************************************************************
     218//******************************************************************************
     219BOOL OSLibWinIsWindowVisible(HWND hwnd)
     220{
     221  return WinIsWindowVisible(hwnd);
     222}
     223//******************************************************************************
     224//******************************************************************************
     225BOOL OSLibWinQueryActiveWindow()
     226{
     227  return WinQueryActiveWindow(HWND_DESKTOP);
     228}
     229//******************************************************************************
     230//******************************************************************************
     231void OSLibWinPostQuitMessage(ULONG nExitCode)
     232{
     233  WinPostQueueMsg(GetThreadMessageQueue(), WM_QUIT, (MPARAM)nExitCode, 0);
     234}
     235//******************************************************************************
     236//******************************************************************************
     237LONG OSLibWinDispatchMsg(MSG *msg, BOOL isUnicode)
     238{
     239 QMSG qmsg;
     240
     241  WinToOS2MsgTranslate(msg, &qmsg, isUnicode);
     242  return (LONG)WinDispatchMsg(GetThreadHAB(), &qmsg);
     243}
     244//******************************************************************************
     245//******************************************************************************
     246BOOL 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.