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.

39 lines
1.4 KiB

  1. /****************************************************************************
  2. Copyright (c) 1998-1999 Microsoft Corporation
  3. Module Name: cplareacodedlg.h
  4. Author: toddb - 10/06/98
  5. ****************************************************************************/
  6. #pragma once
  7. class CAreaCodeRuleDialog
  8. {
  9. public:
  10. CAreaCodeRuleDialog(BOOL bNew, CAreaCodeRule * pRule);
  11. ~CAreaCodeRuleDialog();
  12. #ifdef TRACELOG
  13. DECLARE_TRACELOG_CLASS(CAreaCodeRuleDialog)
  14. #endif
  15. INT_PTR DoModal(HWND hwndParent);
  16. protected:
  17. static INT_PTR CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
  18. BOOL OnInitDialog(HWND hwndDlg);
  19. BOOL OnCommand(HWND hwndParent, int wID, int wNotifyCode, HWND hwndCrl);
  20. BOOL OnNotify(HWND hwndDlg, LPNMHDR pnmhdr);
  21. void PopulatePrefixList(HWND hwndList);
  22. void SetPrefixControlsState(HWND hwndDlg, BOOL bAll);
  23. BOOL ApplyChanges(HWND hwndParent);
  24. void AddPrefix(HWND hwndParent);
  25. void RemoveSelectedPrefix(HWND hwndParent);
  26. BOOL m_bNew; // New or Edit in title
  27. CAreaCodeRule * m_pRule; // the rule being added/edited
  28. int m_iSelectedItem; // current item selected in the list
  29. };