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.

47 lines
1016 B

  1. // File: sdialdlg.h
  2. #ifndef _SDIALDLG_H_
  3. #define _SDIALDLG_H_
  4. #include "SDKInternal.h"
  5. class CSpeedDialDlg
  6. {
  7. protected:
  8. HWND m_hwndParent;
  9. HWND m_hwnd;
  10. LPTSTR m_pszAddress;
  11. LPTSTR m_pszConfName;
  12. NM_ADDR_TYPE m_addrType;
  13. VOID RefreshOkButton();
  14. BOOL ProcessMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
  15. NM_ADDR_TYPE GetCurAddrType(void);
  16. BOOL AddAddressType(NM_ADDR_TYPE addrType, LPCTSTR lpcszDispName);
  17. BOOL AddAddressType(NM_ADDR_TYPE addrType, UINT uStringID);
  18. // Handlers:
  19. BOOL OnTransportChanged();
  20. BOOL OnOk();
  21. public:
  22. // Properties:
  23. LPTSTR GetAddress() {return m_pszAddress;}
  24. NM_ADDR_TYPE GetAddrType() {return m_addrType;}
  25. // Methods:
  26. CSpeedDialDlg(HWND hwndParent, NM_ADDR_TYPE addrType);
  27. ~CSpeedDialDlg();
  28. INT_PTR DoModal(LPCTSTR pcszAddress);
  29. static INT_PTR CALLBACK SpeedDialDlgProc( HWND hDlg,
  30. UINT uMsg,
  31. WPARAM wParam,
  32. LPARAM lParam);
  33. // Handlers:
  34. BOOL OnInitDialog();
  35. };
  36. #endif // _SDIALDLG_H_
  37.