Changeset 30 for trunk/mainwin.cpp


Ignore:
Timestamp:
Mar 13, 2018, 11:51:18 PM (7 years ago)
Author:
Gregg Young
Message:

Changes to allow building either Gotcha or Gotchaq. Gotchaq requires defining _QUIET_. Ticket #10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mainwin.cpp

    r28 r30  
    1818 ***/
    1919
    20 // ** CreateMainWindow **************************************************** /*fold00*/
     20// ** CreateMainWindow **************************************************** /*FOLD00*/
    2121
    2222HWND CreateMainWindow (VOID)
    2323{
    24 //#ifdef _QUIET_
    25 #if 1
     24#ifdef _QUIET_
     25//#if 1
    2626    hwndFrame = WinLoadDlg (HWND_OBJECT, NULLHANDLE, NULL, GETMODULE,
    2727                            ID_DLG_MAIN, NULL);
     
    301301        case WID_PB_SCREEN:
    302302            usCap = CAP_SCREEN;
    303 //#ifdef _Quiet_
    304 #if 1
     303#ifdef _QUIET_
     304//#if 1
    305305            WinShowWindow (g_hwndSettingsDialog, FALSE);
    306306            // WinSendMsg (g_hwndSettingsDialog, WM_CLOSE, 0,0); //Needs to go to the setting dialog
     
    313313        case WID_PB_SCREENREGION:
    314314            usCap = CAP_SCREENREGION;
    315 //#ifdef _Quiet_
    316 #if 1
     315#ifdef _QUIET_
     316//#if 1
    317317            WinShowWindow (g_hwndSettingsDialog, FALSE);
    318318#endif
     
    322322        case WID_PB_WINDOWINTERIOR:
    323323            usCap = CAP_WINDOWINT;
    324 //#ifdef _Quiet_
    325 #if 1
     324#ifdef _QUIET_
     325//#if 1
    326326            WinShowWindow (g_hwndSettingsDialog, FALSE);
    327327#endif
     
    331331        case WID_PB_WINDOW:
    332332            usCap = CAP_WINDOW;
    333 //#ifdef _Quiet_
    334 #if 1
     333#ifdef _QUIET_
     334//#if 1
    335335            WinShowWindow (g_hwndSettingsDialog, FALSE);
    336336#endif
     
    360360        usState = STATE_WAITFORHIDE;
    361361
    362         if (usCap == CAP_SCREENREGION || usCap == CAP_SCREEN)
     362        if (usCap == CAP_SCREENREGION || usCap == CAP_SCREEN) {
     363#ifdef _QUIET_
    363364            hwndParent = WinQueryFocus(HWND_DESKTOP);
    364 //#ifndef _QUIET_
    365 #if 0
     365#else
     366            hwndParent = WinQueryWindow(hwndFrame, QW_NEXTTOP );
     367#endif
     368        }
     369#ifndef _QUIET_
     370//#if 0
    366371        if (WinQueryButtonCheckstate (hwnd, WID_CB_HIDEWINDOW))
    367372            WinShowWindow (WinQueryWindow (hwnd, QW_PARENT), FALSE);
     
    581586        WinSendMsg (hwndSnapshot, UM_STOPCAPTURE, 0,0);
    582587        WinStopTimer (hab, hwnd, ulTimer);
    583 //#ifdef _QUIET_
    584 #if 1
     588#ifdef _QUIET_
     589//#if 1
    585590        // ? FIXME to give option to reshow window.
    586591        if (WinQueryButtonCheckstate (hwnd, WID_CB_HIDEWINDOW))
Note: See TracChangeset for help on using the changeset viewer.