Changeset 41 for trunk/settings.cpp


Ignore:
Timestamp:
Mar 17, 2018, 11:00:45 PM (7 years ago)
Author:
Gregg Young
Message:

Fix hang on non-full screen capture of window with a menu open; Fix failure of widow to come to the top when program set as always on top are running. Add part of window title to auto file names; Major overhaul of settings dialog for Gotcha Quiet. More _QUIET_ ifdefs added to split code where Gotcha and Gotcha Quiet differ.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/settings.cpp

    r37 r41  
    232232        hwndPage[0] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) WindowProcedure,
    233233                                  GETMODULE, ID_DLG_SETTINGSPAGE0, this);
    234         hwndPage[1] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) Page1Procedure,
     234        hwndPage[1] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) Page2Procedure,
     235                                  GETMODULE, ID_DLG_SETTINGSPAGE2, this);
     236        hwndPage[2] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) Page1Procedure,
    235237                                  GETMODULE, ID_DLG_SETTINGSPAGE1, this);
    236         hwndPage[2] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) Page2Procedure,
    237                                   GETMODULE, ID_DLG_SETTINGSPAGE2, this);
    238238        hwndPage[3] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) Page4Procedure,
    239239                                  GETMODULE, ID_DLG_SETTINGSPAGE4, this);
     
    267267    //WinSetFocus (WinWindowFromID (hwndDlg, WID_PB_OK), TRUE);
    268268    //WinSetFocus( hwndPage[0], TRUE );
     269#ifdef _QUIET_
     270    if (HACCEL haccel = WinLoadAccelTable (hab, GETMODULE, 1)) {
     271        int rc = WinSetAccelTable (hab, haccel, hwndDlg);
     272        _PmpfF(( " Acceltable %i", rc));
     273    }
     274#endif
    269275    WinSetActiveWindow( HWND_DESKTOP, hwndPage[0] );
    270276#ifdef _DOLOGDEBUG_
     
    280286    LogDebug( "Dialog: checkpoint 8" );
    281287#endif
    282 
     288#ifndef _QUIET_
    283289    // it ain't the best way to do it, but ...
    284290    SetIdlePriority(QueryFlag(SEI_IDLEPRIORITY));
    285 
     291#endif
    286292    for (i = 0; i < COUNT_PAGES; i++)
    287293        hwndPage[i] = NULL;
     
    11341140//#if 1
    11351141    pszPageTab[0] = RSTR (IDS_MAINWIN);
    1136     pszPageTab[1] = RSTR (IDS_PAGESAVE);
    1137     pszPageTab[2] = RSTR (IDS_PAGEMISC);
     1142    pszPageTab[1] = RSTR (IDS_PAGEMISC);
     1143    pszPageTab[2] = RSTR (IDS_PAGESAVE);
    11381144    pszPageTab[3] = RSTR (IDS_PAGELANGUAGE);
    11391145#else
     
    11581164//#if 1
    11591165    pszPageTab[0] = RSTR (IDS_MAINWIN);
    1160     pszPageTab[1] = RSTR (IDS_PAGESAVE);
    1161     pszPageTab[2] = RSTR (IDS_PAGEMISC);
     1166    pszPageTab[1] = RSTR (IDS_PAGEMISC);
     1167    pszPageTab[2] = RSTR (IDS_PAGESAVE);
    11621168    pszPageTab[3] = RSTR (IDS_PAGELANGUAGE);
    11631169#else
Note: See TracChangeset for help on using the changeset viewer.