Changeset 10431 for trunk/src


Ignore:
Timestamp:
Jan 30, 2004, 11:10:26 PM (22 years ago)
Author:
bird
Message:

#682: Test for DEBUG_LOGGING not DEBUG. dprintf may be used in release.

Location:
trunk/src/user32
Files:
4 edited

Legend:

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

    r10379 r10431  
    1 /* $Id: pmwindow.cpp,v 1.226 2004-01-11 12:03:16 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.227 2004-01-30 22:10:26 bird Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    135135VOID APIENTRY DspInitSystemDriverName(PSZ pszDriverName, ULONG lenDriverName);
    136136
    137 #ifdef DEBUG
     137#ifdef DEBUG_LOGGING
    138138static char *DbgGetStringSWPFlags(ULONG flags);
    139139static char *DbgPrintQFCFlags(ULONG flags);
     
    189189    SetThreadMessageQueue(hmq);
    190190
    191     //initialize keyboard hook for first thread 
     191    //initialize keyboard hook for first thread
    192192    hookInit(hab);
    193193
     
    259259    dprintf(("CAPS_GRAPHICS_CHAR_HEIGHT = %d", CapsCharHeight));
    260260    if(CapsCharHeight > 16) {
    261        CapsCharHeight = 16; 
     261       CapsCharHeight = 16;
    262262    }
    263263
     
    372372}
    373373//******************************************************************************
    374 // Turn on CD Polling (window with 2 second timer to check CD disk presence) 
    375 // 
     374// Turn on CD Polling (window with 2 second timer to check CD disk presence)
     375//
    376376// NOTE: This can cause PM hangs when executing a program for a very long time
    377377//       (block in IOCtl)
     
    553553    // - thread must not be suspended in WaitMessage
    554554    if(!teb || (msg != WM_CREATE && win32wnd == NULL) || teb->o.odin.fWaitMessageSuspend) {
    555         if(teb && teb->o.odin.fWaitMessageSuspend) 
     555        if(teb && teb->o.odin.fWaitMessageSuspend)
    556556             dprintf(("OS2: fWaitMessageSuspend window %x msg %x -> run default frame proc", hwnd, msg));
    557557        else dprintf(("OS2: Invalid win32wnd pointer for window %x msg %x", hwnd, msg));
     
    673673        dprintf(("OS2: WM_SHOW %x %d", hwnd, mp1));
    674674        win32wnd->MsgShow((ULONG)mp1);
    675  
    676         //if a child window is hidden, then the update region of the 
     675
     676        //if a child window is hidden, then the update region of the
    677677        //parent changes and a WM_ERASEBKGND is required during the next
    678678        //BeginPaint call.
    679         if((ULONG)mp1 == FALSE) 
     679        if((ULONG)mp1 == FALSE)
    680680        {
    681681            Win32BaseWindow *parent = win32wnd->getParent();
     
    729729        HDC  hdcWindow[MAX_OPENDCS];
    730730
    731         if(win32wnd->queryOpenDCs(hdcWindow, MAX_OPENDCS, &nrdcs)) 
     731        if(win32wnd->queryOpenDCs(hdcWindow, MAX_OPENDCS, &nrdcs))
    732732        {
    733733            RECTL rcl = {0,0,1,1};
     
    792792        break;
    793793    }
    794    
     794
    795795#ifdef DEBUG
    796796    case WM_SETFOCUS:
     
    12461246    // - thread must not be suspended in WaitMessage
    12471247    if(!teb || (msg != WM_CREATE && win32wnd == NULL) || teb->o.odin.fWaitMessageSuspend) {
    1248         if(teb && teb->o.odin.fWaitMessageSuspend) 
     1248        if(teb && teb->o.odin.fWaitMessageSuspend)
    12491249             dprintf(("PMFRAME: fWaitMessageSuspend window %x msg %x -> run default frame proc", hwnd, msg));
    12501250        else dprintf(("PMFRAME: Invalid win32wnd pointer for window %x msg %x", hwnd, msg));
     
    14371437
    14381438        }
    1439      
     1439
    14401440        //PF Pure flags should not cause any subsequent messages to win32 windows
    14411441        //we should route them to DefFrameWndProc and check highlight.
    1442  
     1442
    14431443        if ((pswp->fl == SWP_FOCUSACTIVATE) || (pswp->fl == SWP_FOCUSDEACTIVATE))
    14441444        {
     
    25412541//******************************************************************************
    25422542
    2543 #ifdef DEBUG
     2543#ifdef DEBUG_LOGGING
    25442544static char *DbgGetStringSWPFlags(ULONG flags)
    25452545{
  • trunk/src/user32/windlg.cpp

    r9519 r10431  
    1 /* $Id: windlg.cpp,v 1.36 2002-12-17 14:16:47 sandervl Exp $ */
     1/* $Id: windlg.cpp,v 1.37 2004-01-30 22:10:25 bird Exp $ */
    22/*
    33 * Win32 dialog apis for OS/2
     
    242242  Win32Dialog *dialog;
    243243  BOOL rc;
    244 #ifdef DEBUG
     244#ifdef DEBUG_LOGGING
    245245  RECT dlgRect = *rect;
    246246#endif
     
    279279    HWND hChildFirst = 0;
    280280
    281     if(!hwndCtrl) 
     281    if(!hwndCtrl)
    282282    {
    283283        hChildFirst = GetWindow(hwndDlg,GW_CHILD);
     
    384384    }
    385385    dprintf(("USER32: GetNextDlgTabItem %x %x %d", hwndDlg,hwndCtrl,fPrevious));
    386     return DIALOG_GetNextTabItem(hwndDlg,hwndDlg,hwndCtrl,fPrevious); 
     386    return DIALOG_GetNextTabItem(hwndDlg,hwndDlg,hwndCtrl,fPrevious);
    387387}
    388388//******************************************************************************
  • trunk/src/user32/wndmsg.cpp

    r9523 r10431  
    1 /* $Id: wndmsg.cpp,v 1.19 2002-12-18 12:28:08 sandervl Exp $ */
     1/* $Id: wndmsg.cpp,v 1.20 2004-01-30 22:10:25 bird Exp $ */
    22/*
    33 * Win32 window message text function for OS/2
     
    2020#include "dbglocal.h"
    2121
    22 #ifdef DEBUG
     22#ifdef DEBUG_LOGGING
    2323typedef struct
    2424{
  • trunk/src/user32/wndmsg.h

    r9523 r10431  
    1 /* $Id: wndmsg.h,v 1.7 2002-12-18 12:28:08 sandervl Exp $ */
     1/* $Id: wndmsg.h,v 1.8 2004-01-30 22:10:24 bird Exp $ */
    22/*
    33 * Win32 window message text function for OS/2
     
    1616#endif
    1717
    18 #ifdef DEBUG
     18#ifdef DEBUG_LOGGING
    1919char *GetMsgText(int Msg);
    2020
Note: See TracChangeset for help on using the changeset viewer.