Changeset 51 for trunk/settings.cpp
- Timestamp:
- Apr 7, 2018, 10:04:50 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/settings.cpp
r41 r51 219 219 } 220 220 #ifndef _QUIET_ 221 //#if 0222 221 // open and assign dialogs to pages 223 222 hwndPage[0] = WinLoadDlg (hwndNB, hwndNB, (PFNWP) Page1Procedure, … … 263 262 WinSendDlgItemMsg (g_hwndPage0, WID_RB_FILE, BM_CLICK, 264 263 MPFROMSHORT (TRUE), 0); 265 WinSendDlgItemMsg (g_hwndPage0, WID_CB_HIDEWINDOW, BM_SETCHECK,266 MPFROMLONG (TRUE), MPFROMLONG (0));264 //WinSendDlgItemMsg (g_hwndPage0, WID_CB_HIDEWINDOW, BM_SETCHECK, 265 // MPFROMLONG (TRUE), MPFROMLONG (0)); 267 266 //WinSetFocus (WinWindowFromID (hwndDlg, WID_PB_OK), TRUE); 268 //WinSetFocus( hwndPage[0], TRUE );267 //WinSetFocus( hwndPage[0], FALSE ); 269 268 #ifdef _QUIET_ 270 269 if (HACCEL haccel = WinLoadAccelTable (hab, GETMODULE, 1)) { 271 270 int rc = WinSetAccelTable (hab, haccel, hwndDlg); 272 _PmpfF(( " Acceltable %i", rc)); 273 } 274 #endif 275 WinSetActiveWindow( HWND_DESKTOP, hwndPage[0] ); 271 } 272 #endif 273 WinSetActiveWindow( HWND_DESKTOP, hwndDlg ); 276 274 #ifdef _DOLOGDEBUG_ 277 275 LogDebug( "Dialog: checkpoint 7" ); … … 355 353 break; 356 354 355 case WID_PB_ABOUT: 356 AboutBox (hwnd); 357 break; 358 357 359 case DID_CANCEL: 358 360 { … … 636 638 637 639 case WM_COMMAND: 640 641 if( SHORT1FROMMP( mp1 ) == WID_PB_OK) { 642 saveum = TRUE; 643 WinSendMsg ( g_hwndSettingsDialog, WM_CLOSE, 0,0); 644 } 638 645 if( SHORT1FROMMP( mp1 ) == DID_CANCEL ) 639 646 WinPostMsg( g_hwndSettingsDialog, msg, mp1, mp2 ); … … 657 664 pset->AdjustButton (hwnd, WID_CB_DELAYCOUNTDOWN, 658 665 pset->DelayCountdown ()); 666 pset->AdjustButton (hwnd, WID_CB_DELAYEDCAPTURE, 667 pset->DelayedCapture ()); 659 668 660 669 // init delay time sb … … 728 737 pset->DelayCountdown(WinQueryButtonCheckstate 729 738 (hwnd, WID_CB_DELAYCOUNTDOWN)); 739 pset->DelayedCapture (WinQueryButtonCheckstate 740 (hwnd,WID_CB_DELAYEDCAPTURE)); 730 741 #endif 731 742 // get ssw capture type … … 781 792 WinShowWindow (hwndSnapshot, TRUE); 782 793 break; 794 case WID_CB_DELAYEDCAPTURE: 795 796 WinSendDlgItemMsg (g_hwndPage0, WID_CB_DELAYEDCAPTURE, BM_SETCHECK, 797 MPFROMLONG (WinQueryButtonCheckstate 798 (hwnd,WID_CB_DELAYEDCAPTURE)), 799 MPFROMLONG (0)); 800 WinSendDlgItemMsg (WinWindowFromID(hwndFrame, FID_CLIENT), 801 WID_CB_DELAYEDCAPTURE, BM_SETCHECK, 802 MPFROMLONG (WinQueryButtonCheckstate 803 (hwnd,WID_CB_DELAYEDCAPTURE)), 804 MPFROMLONG (0)); 805 break; 783 806 } 784 807 return MRESULT (FALSE);
Note:
See TracChangeset
for help on using the changeset viewer.