Ignore:
Timestamp:
Jul 15, 1999, 8:41:46 PM (26 years ago)
Author:
sandervl
Message:

* empty log message *

File:
1 edited

Legend:

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

    r309 r310  
    1 /* $Id: windowmsg.cpp,v 1.3 1999-07-15 18:03:03 sandervl Exp $ */
     1/* $Id: windowmsg.cpp,v 1.4 1999-07-15 18:41:46 sandervl Exp $ */
    22/*
    33 * Win32 window message APIs for OS/2
     
    1818#include <handlemanager.h>
    1919#include <win.h>
     20#include <hooks.h>
    2021
    2122//******************************************************************************
     
    129130}
    130131//******************************************************************************
     132//TODO: hwnd == HWND_BROADCAST
    131133//******************************************************************************
    132134LRESULT WIN32API SendMessageA(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
     
    141143}
    142144//******************************************************************************
     145//TODO: hwnd == HWND_BROADCAST
    143146//******************************************************************************
    144147LRESULT WIN32API SendMessageW(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
     
    153156}
    154157//******************************************************************************
     158//TODO: hwnd == HWND_BROADCAST
    155159//******************************************************************************
    156160BOOL WIN32API PostMessageA(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
    157161{
    158162  Win32Window *window;
     163
     164    if(hwnd == NULL)
     165        return PostThreadMessageA(GetCurrentThreadId(), msg, wParam, lParam);
    159166
    160167    if(HMHandleTranslateToOS2(hwnd, (PULONG)&window) != NO_ERROR) {
     
    165172}
    166173//******************************************************************************
     174//TODO: hwnd == HWND_BROADCAST
    167175//******************************************************************************
    168176BOOL WIN32API PostMessageW(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
    169177{
    170178  Win32Window *window;
     179
     180    if(hwnd == NULL)
     181        return PostThreadMessageW(GetCurrentThreadId(), msg, wParam, lParam);
    171182
    172183    if(HMHandleTranslateToOS2(hwnd, (PULONG)&window) != NO_ERROR) {
     
    268279    FreeAsciiString(astring);
    269280    return rc;
    270 }
    271 //******************************************************************************
    272 //******************************************************************************
    273 BOOL WIN32API CallMsgFilterA( LPMSG arg1, int  arg2)
    274 {
    275 #ifdef DEBUG
    276     WriteLog("USER32:  CallMsgFilterA\n");
    277 #endif
    278     return O32_CallMsgFilter(arg1, arg2);
    279 }
    280 //******************************************************************************
    281 //******************************************************************************
    282 BOOL WIN32API CallMsgFilterW( LPMSG arg1, int  arg2)
    283 {
    284 #ifdef DEBUG
    285     WriteLog("USER32:  CallMsgFilterW\n");
    286 #endif
    287     // NOTE: This will not work as is (needs UNICODE support)
    288     return O32_CallMsgFilter(arg1, arg2);
    289281}
    290282//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.