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.

90 lines
3.1 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : DlgNewDevice.h //
  3. // //
  4. // DESCRIPTION : Header file for the CDlgNewFaxOutboundDevice class. //
  5. // The class implement the dialog for new Group. //
  6. // //
  7. // AUTHOR : yossg //
  8. // //
  9. // HISTORY : //
  10. // Jan 3 2000 yossg Create //
  11. // //
  12. // Copyright (C) 2000 Microsoft Corporation All Rights Reserved //
  13. /////////////////////////////////////////////////////////////////////////////
  14. #ifndef DLGNEWOUTDEVICE_H_INCLUDED
  15. #define DLGNEWOUTDEVICE_H_INCLUDED
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CDlgNewFaxOutboundDevice
  18. class CFaxServer;
  19. class CDlgNewFaxOutboundDevice :
  20. public CDialogImpl<CDlgNewFaxOutboundDevice>
  21. {
  22. public:
  23. CDlgNewFaxOutboundDevice(CFaxServer * pFaxServer);
  24. ~CDlgNewFaxOutboundDevice();
  25. enum { IDD = IDD_DLGNEWDEVICE };
  26. BEGIN_MSG_MAP(CDlgNewFaxOutboundDevice)
  27. MESSAGE_HANDLER (WM_INITDIALOG, OnInitDialog)
  28. COMMAND_ID_HANDLER(IDOK, OnOK)
  29. COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
  30. MESSAGE_HANDLER( WM_CONTEXTMENU, OnHelpRequest)
  31. MESSAGE_HANDLER( WM_HELP, OnHelpRequest)
  32. NOTIFY_HANDLER (IDC_DEVICE_LISTVIEW, LVN_ITEMCHANGED, OnListViewItemChanged)
  33. END_MSG_MAP()
  34. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  35. LRESULT OnOK (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  36. LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  37. HRESULT InitDevices(DWORD dwNumOfDevices, LPDWORD lpdwDeviceID, BSTR bstrGroupName);
  38. HRESULT InitAssignedDevices(DWORD dwNumOfDevices, LPDWORD lpdwDeviceID);
  39. HRESULT InitAllDevices( );
  40. HRESULT InitDeviceNameFromID(DWORD dwDeviceID, BSTR * pbstrDeviceName);
  41. HRESULT InsertDeviceToList(UINT uiIndex, DWORD dwDeviceID);
  42. LRESULT OnListViewItemChanged (int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  43. //
  44. // Help
  45. //
  46. LRESULT OnHelpRequest (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  47. private:
  48. //
  49. // Methods
  50. //
  51. VOID EnableOK(BOOL fEnable);
  52. //
  53. // members
  54. //
  55. LPDWORD m_lpdwAllDeviceID;
  56. DWORD m_dwNumOfAllDevices;
  57. LPDWORD m_lpdwAssignedDeviceID;
  58. DWORD m_dwNumOfAssignedDevices;
  59. DWORD m_dwNumOfAllAssignedDevices;
  60. CComBSTR m_bstrGroupName;
  61. //
  62. // Controls
  63. //
  64. CListViewCtrl m_DeviceList;
  65. CFaxServer * m_pFaxServer;
  66. };
  67. #endif // DLGNEWOUTDEVICE_H_INCLUDED