Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
859 B

  1. //
  2. //
  3. //
  4. #include "stdafx.h"
  5. #include "aspmain.h"
  6. LRESULT
  7. CAspMainPage::OnInitDialog(HWND hDlg, LPARAM lParam)
  8. {
  9. DoDataExchange();
  10. UDACCEL toAcc[3] = {{1, 1}, {3, 5}, {6, 10}};
  11. m_TimeoutSpin.SetRange32(1, 0x7fffffff);
  12. m_TimeoutSpin.SetPos32(m_pData->m_SessionTimeout);
  13. m_TimeoutSpin.SetAccel(3, toAcc);
  14. m_AspTimeoutSpin.SetRange32(1, 0x7fffffff);
  15. m_AspTimeoutSpin.SetPos32(m_pData->m_ScriptTimeout);
  16. m_AspTimeoutSpin.SetAccel(3, toAcc);
  17. return FALSE;
  18. }
  19. void
  20. CAspMainPage::OnEnableSession(UINT nCode, UINT nID, HWND hWnd)
  21. {
  22. BOOL bEnable = SendDlgItemMessage(IDC_ENABLE_SESSION, BM_GETCHECK, 0, 0);
  23. ::EnableWindow(GetDlgItem(IDC_SESSION_TIMEOUT), bEnable);
  24. ::EnableWindow(GetDlgItem(IDC_TIMEOUT_SPIN), bEnable);
  25. SET_MODIFIED(TRUE);
  26. }
  27. BOOL
  28. CAspMainPage::OnKillActive()
  29. {
  30. DoDataExchange(TRUE);
  31. return TRUE;
  32. }