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.

File:
1 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{
Note: See TracChangeset for help on using the changeset viewer.