Ignore:
Timestamp:
Aug 22, 2003, 3:16:45 PM (22 years ago)
Author:
sandervl
Message:

Ignore messages sent or posted to the desktop window; Post/SendMessage: use shared or local memory depending

File:
1 edited

Legend:

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

    r10190 r10240  
    1 /* $Id: pmwindow.cpp,v 1.218 2003-07-31 15:56:44 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.219 2003-08-22 13:16:45 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    117117// WM_KEYDOWN messages come in properly.
    118118static BOOL fKeyAltGrDown = FALSE;
    119 
     119static BOOL fEnableCDPolling = FALSE;
    120120
    121121static char *PMDragExtractFiles(PDRAGINFO pDragInfo, ULONG *pcItems, ULONG *pulBytes);
     
    343343{
    344344    fDragDropDisabled = fDisabled;
     345}
     346//******************************************************************************
     347// Turn on CD Polling (window with 2 second timer to check CD disk presence)
     348//
     349// NOTE: This can cause PM hangs when executing a program for a very long time
     350//       (block in IOCtl)
     351//******************************************************************************
     352void WIN32API CustEnableCDPolling()
     353{
     354    fEnableCDPolling = TRUE;
    345355}
    346356//******************************************************************************
     
    598608
    599609        //Create CD notification window
    600         if(hwndCD == 0) {
     610        if(hwndCD == 0 && fEnableCDPolling) {
    601611            hwndCD = WinCreateWindow(HWND_DESKTOP, WIN32_CDCLASS,
    602612                                     NULL, 0, 0, 0, 0, 0,
Note: See TracChangeset for help on using the changeset viewer.