Changeset 7808 for trunk/src


Ignore:
Timestamp:
Feb 6, 2002, 5:31:49 PM (24 years ago)
Author:
sandervl
Message:

minor logging updates

Location:
trunk/src/user32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/message.cpp

    r7801 r7808  
    1 /* $Id: message.cpp,v 1.1 2002-02-05 17:58:59 sandervl Exp $ */
     1/* $Id: message.cpp,v 1.2 2002-02-06 16:31:48 sandervl Exp $ */
    22/*
    33 * Win32 window message APIs for OS/2
     
    2929#include "oslibmsg.h"
    3030#include "hook.h"
     31#include "wndmsg.h"
    3132
    3233#define DBG_LOCALLOG    DBG_message
     
    263264{
    264265    LRESULT res = 0;
     266    DebugPrintMessage(hwnd, msg, wParam, lParam, FALSE, FALSE);
    265267    SendMessageTimeoutA(hwnd, msg, wParam, lParam, SMTO_NORMAL, INFINITE, (LPDWORD)&res);
    266268    return res;
     
    271273{
    272274    LRESULT res = 0;
     275    DebugPrintMessage(hwnd, msg, wParam, lParam, TRUE, FALSE);
    273276    SendMessageTimeoutW(hwnd, msg, wParam, lParam, SMTO_NORMAL, INFINITE, (LPDWORD)&res);
    274277    return res;
     
    314317    hwndOS2 = window->getOS2WindowHandle();
    315318    RELEASE_WNDOBJ(window);
    316     dprintf(("PostMessageA, %x %x %x %x", hwnd, msg, wParam, lParam));
     319    DebugPrintMessage(hwnd, msg, wParam, lParam, FALSE, TRUE);
    317320    return OSLibPostMessage(hwndOS2, msg, wParam, lParam, FALSE);
    318321}
     
    349352    hwndOS2 = window->getOS2WindowHandle();
    350353    RELEASE_WNDOBJ(window);
    351     dprintf(("PostMessageW, %x %x %x %x", hwnd, msg, wParam, lParam));
     354    DebugPrintMessage(hwnd, msg, wParam, lParam, TRUE, TRUE);
    352355    return OSLibPostMessage(hwndOS2, msg, wParam, lParam, TRUE);
    353356}
  • trunk/src/user32/window.cpp

    r7765 r7808  
    1 /* $Id: window.cpp,v 1.115 2002-01-12 14:09:32 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.116 2002-02-06 16:31:48 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    19171917//******************************************************************************
    19181918//******************************************************************************
    1919 ODINFUNCTION2(DWORD,   GetWindowThreadProcessId,
    1920               HWND,    hWnd,
    1921               PDWORD,  lpdwProcessId)
    1922 {
    1923   hWnd = Win32ToOS2Handle(hWnd);
    1924   return O32_GetWindowThreadProcessId(hWnd,lpdwProcessId);
     1919DWORD WIN32API GetWindowThreadProcessId(HWND hwnd, PDWORD lpdwProcessId)
     1920{
     1921    DWORD dwThreadId;
     1922
     1923    dwThreadId = O32_GetWindowThreadProcessId(Win32ToOS2Handle(hwnd), lpdwProcessId);
     1924    if(dwThreadId == 0) {
     1925        dprintf(("!WARNING! GetWindowThreadProcessId %x failed!!", hwnd));
     1926    }
     1927    return dwThreadId;
    19251928}
    19261929//******************************************************************************
  • trunk/src/user32/wndmsg.cpp

    r6970 r7808  
    1 /* $Id: wndmsg.cpp,v 1.16 2001-10-08 23:24:43 phaller Exp $ */
     1/* $Id: wndmsg.cpp,v 1.17 2002-02-06 16:31:49 sandervl Exp $ */
    22/*
    33 * Win32 window message text function for OS/2
     
    765765}
    766766
    767 
    768 void DebugPrintMessage(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam, BOOL fUnicode, BOOL fInternalMsg)
     767#include <commctrl.h>
     768
     769void DebugPrintMessage(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam, BOOL fUnicode, BOOL fPostMessage)
    769770{
    770771 char unicode;
     
    778779        if(PostSpyMessage(hwnd, Msg, wParam, lParam) == FALSE)
    779780        {
    780             if(fInternalMsg) {
    781                     dprintf(("SendInternalMessage%c %s for %x %x %x", unicode, GetMsgText(Msg), hwnd, wParam, lParam));
     781            if(fPostMessage) {
     782                    dprintf(("PostMessage%c %s for %x %x %x", unicode, GetMsgText(Msg), hwnd, wParam, lParam));
    782783            }
    783784            else    dprintf(("SendMessage%c %s for %x %x %x", unicode, GetMsgText(Msg), hwnd, wParam, lParam));
     
    785786  }
    786787  else {
    787         if(fInternalMsg) {
    788                 dprintf2(("SendInternalMessage%c %s for %x %x %x", unicode, GetMsgText(Msg), hwnd, wParam, lParam));
     788        if(fPostMessage) {
     789                dprintf2(("PostMessage%c %s for %x %x %x", unicode, GetMsgText(Msg), hwnd, wParam, lParam));
    789790        }
    790791        else    dprintf2(("SendMessage%c %s for %x %x %x", unicode, GetMsgText(Msg), hwnd, wParam, lParam));
    791792  }
     793//testestest
     794  if(Msg == WM_NOTIFY && (hwnd == 0x6800000a || hwnd == 0x6800000c)) {
     795      LPNMLISTVIEW pHdr = (LPNMLISTVIEW)lParam;
     796      dprintf(("WM_NOTIFY %x %x %x", pHdr->hdr.hwndFrom, pHdr->hdr.idFrom, pHdr->hdr.code));
     797  }
     798//testestest
    792799}
    793800
Note: See TracChangeset for help on using the changeset viewer.