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.

57 lines
2.2 KiB

  1. /****************************************************************************
  2. Copyright (c) 1998-1999 Microsoft Corporation
  3. Module Name: cplcallingcardps.h
  4. Author: toddb - 10/06/98
  5. ****************************************************************************/
  6. #pragma once
  7. class CCallingCardPropSheet
  8. {
  9. public:
  10. CCallingCardPropSheet(BOOL bNew, BOOL bShowPIN, CCallingCard * pCard, CCallingCards * pCards);
  11. ~CCallingCardPropSheet();
  12. #ifdef TRACELOG
  13. DECLARE_TRACELOG_CLASS(CCallingCardPropSheet)
  14. #endif
  15. LONG DoPropSheet(HWND hwndParent);
  16. protected:
  17. // functions for the general page
  18. static INT_PTR CALLBACK General_DialogProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
  19. BOOL General_OnInitDialog(HWND hwndDlg);
  20. BOOL General_OnCommand(HWND hwndParent, int wID, int wNotifyCode, HWND hwndCrl);
  21. BOOL General_OnNotify(HWND hwndDlg, LPNMHDR pnmhdr);
  22. BOOL Gerneral_OnApply(HWND hwndDlg);
  23. void SetTextForRules(HWND hwndDlg);
  24. // functions shared by all the other pages
  25. static INT_PTR CALLBACK DialogProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam );
  26. BOOL OnInitDialog(HWND hwndDlg, int iPage);
  27. BOOL OnCommand(HWND hwndParent, int wID, int wNotifyCode, HWND hwndCrl, int iPage);
  28. BOOL OnNotify(HWND hwndDlg, LPNMHDR pnmhdr, int iPage);
  29. BOOL OnDestroy(HWND hwndDlg);
  30. void SetButtonStates(HWND hwndDlg, int iItem);
  31. BOOL UpdateRule(HWND hwndDlg, int iPage);
  32. BOOL m_bNew; // True if this is a new location, false if we're editing an existing one
  33. BOOL m_bShowPIN; // True if it's safe to display the PIN
  34. CCallingCard * m_pCard; // pointer to the location object to use.
  35. CCallingCards * m_pCards; // pointer to the list of all cards in the parent
  36. BOOL m_bHasLongDistance;
  37. BOOL m_bHasInternational;
  38. BOOL m_bHasLocal;
  39. BOOL m_bWasApplied;
  40. };
  41. typedef struct tagCCPAGEDATA
  42. {
  43. CCallingCardPropSheet * pthis;
  44. int iWhichPage;
  45. } CCPAGEDATA;