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

minor logging updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.