Leaked source code of windows server 2003
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.

87 lines
3.1 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : dlgSelectCountry.h //
  3. // //
  4. // DESCRIPTION : Header file for the CDlgSelectCountry class. //
  5. // The class implement the dialog for new Device. //
  6. // //
  7. // AUTHOR : yossg //
  8. // //
  9. // HISTORY : //
  10. // Dec 30 1999 yossg Create //
  11. // Jan 25 2000 yossg Change the Dialog Design //
  12. // Oct 17 2000 yossg //
  13. // //
  14. // Copyright (C) 1999 - 2000 Microsoft Corporation All Rights Reserved //
  15. /////////////////////////////////////////////////////////////////////////////
  16. #ifndef DLGSELECTCOUNTRY_H_INCLUDED
  17. #define DLGSELECTCOUNTRY_H_INCLUDED
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CDlgSelectCountry
  20. class CFaxServer;
  21. class CDlgSelectCountry :
  22. public CDialogImpl<CDlgSelectCountry>
  23. {
  24. public:
  25. CDlgSelectCountry(CFaxServer * pFaxServer);
  26. ~CDlgSelectCountry();
  27. enum { IDD = IDD_SELECT_COUNTRYCODE };
  28. BEGIN_MSG_MAP(CDlgSelectCountry)
  29. MESSAGE_HANDLER (WM_INITDIALOG, OnInitDialog)
  30. COMMAND_ID_HANDLER(IDOK, OnOK)
  31. COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
  32. COMMAND_HANDLER(IDC_COUNTRYRULE_COMBO, CBN_SELCHANGE, OnComboChanged)
  33. MESSAGE_HANDLER( WM_CONTEXTMENU, OnHelpRequest)
  34. MESSAGE_HANDLER( WM_HELP, OnHelpRequest)
  35. END_MSG_MAP()
  36. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  37. LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  38. LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  39. LRESULT OnComboChanged (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  40. //
  41. // Help
  42. //
  43. LRESULT OnHelpRequest (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  44. HRESULT InitSelectCountryCodeDlg();
  45. DWORD GetCountryCode(){ return m_dwCountryCode; }
  46. private:
  47. //
  48. // Methods
  49. //
  50. VOID EnableOK(BOOL fEnable);
  51. BOOL AllReadyToApply(BOOL fSilent);
  52. //
  53. // Members
  54. //
  55. CFaxServer * m_pFaxServer;
  56. PFAX_TAPI_LINECOUNTRY_LIST m_pCountryList;
  57. DWORD m_dwNumOfCountries;
  58. BOOL m_fAllReadyToApply;
  59. //
  60. // Controls
  61. //
  62. CComboBox m_CountryCombo;
  63. DWORD m_dwCountryCode;
  64. };
  65. #endif // DLGSELECTCOUNTRY_H_INCLUDED