1
0

options_stationinfo.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /** (c) Nullsoft, Inc. C O N F I D E N T I A L
  2. ** Filename:
  3. ** Project:
  4. ** Description:
  5. ** Author: Ben Allison [email protected]
  6. ** Created:
  7. **/
  8. #include "Main.h"
  9. #include "Options.h"
  10. #include "resource.h"
  11. // video tab procedure
  12. INT_PTR CALLBACK StationInfoProc(HWND hwndDlg, UINT uMsg, WPARAM wParam,LPARAM lParam)
  13. {
  14. /*
  15. hi helpinfo[]={
  16. {IDC_PREFS_VIDEO_VSYNC,IDS_P_O_VIDEO_VSYNC},
  17. {IDC_PREFS_VIDEO_ADJASP,IDS_P_O_VIDEO_ADJASP},
  18. {IDC_PREFS_VIDEO_OVERLAYS,IDS_P_O_VIDEO_OVERLAYS},
  19. {IDC_PREFS_VIDEO_UPDSIZE,IDS_P_O_VIDEO_UPDSIZE},
  20. {IDC_PREFS_VIDEO_AUTOCLOSE,IDS_P_O_VIDEO_AUTOCLOSE},
  21. {IDC_PREFS_VIDEO_NOSS,IDS_P_O_VIDEO_NOSS},
  22. {IDC_PREFS_VIDEO_OSD,IDS_P_O_VIDEO_OSD},
  23. {IDC_PREFS_VIDEO_YV12,IDS_P_O_VIDEO_YV12},
  24. {IDC_PREFS_VIDEO_STOPCLOSE,IDS_P_O_VIDEO_STOPCLOSE},
  25. {IDC_PREFS_VIDEO_REMOVE_FS_ON_STOP,IDS_P_O_VIDEO_REMOVE_FS_ON_STOP},
  26. {IDC_PREFS_VIDEO_AUTOOPEN,IDS_P_O_VIDEO_AUTOOPEN},
  27. };
  28. DO_HELP();*/
  29. if (uMsg == WM_INITDIALOG)
  30. {
  31. CheckDlgButton(hwndDlg,IDC_PREFS_STATIONINFO_AUTOSHOW,config_si_autoshow);
  32. CheckDlgButton(hwndDlg,IDC_PREFS_STATIONINFO_AUTOHIDE,config_si_autohide);
  33. CheckDlgButton(hwndDlg,IDC_PREFS_STATIONINFO_AUTOSIZE,config_si_autosize);
  34. }
  35. if (uMsg == WM_COMMAND) switch (LOWORD(wParam))
  36. {
  37. case IDC_PREFS_STATIONINFO_AUTOSHOW: config_si_autoshow = IsDlgButtonChecked(hwndDlg,IDC_PREFS_STATIONINFO_AUTOSHOW)?1:0; break;
  38. case IDC_PREFS_STATIONINFO_AUTOHIDE: config_si_autohide = IsDlgButtonChecked(hwndDlg,IDC_PREFS_STATIONINFO_AUTOHIDE)?1:0; break;
  39. case IDC_PREFS_STATIONINFO_AUTOSIZE: config_si_autosize = IsDlgButtonChecked(hwndDlg,IDC_PREFS_STATIONINFO_AUTOSIZE)?1:0; break;
  40. }
  41. return FALSE;
  42. } //video