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.

63 lines
1.5 KiB

  1. /*****************************************************************************
  2. *
  3. * $Workfile: AddMInfo.h $
  4. *
  5. * Copyright (C) 1997 Hewlett-Packard Company.
  6. * Copyright (c) 1997 Microsoft Corporation.
  7. * All rights reserved.
  8. *
  9. * 11311 Chinden Blvd.
  10. * Boise, Idaho 83714
  11. *
  12. *****************************************************************************/
  13. #ifndef INC_ADDMOREINFO_H
  14. #define INC_ADDMOREINFO_H
  15. #define DEFAULT_COMBO_SELECTION TEXT("<")
  16. // Global Variables
  17. extern HINSTANCE g_hInstance;
  18. // Constants
  19. const int MAX_LISTBOX_STRLEN = 50;
  20. const int MAX_REASON_STRLEN = 512;
  21. class CMoreInfoDlg
  22. {
  23. public:
  24. CMoreInfoDlg();
  25. ~CMoreInfoDlg();
  26. public:
  27. BOOL OnInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam);
  28. BOOL OnCommand(HWND hDlg, WPARAM wParam, LPARAM lParam);
  29. BOOL OnNotify(HWND hDlg, WPARAM wParam, LPARAM lParam);
  30. protected:
  31. BOOL OnButtonClicked(HWND hDlg, WPARAM wParam, LPARAM lParam);
  32. void FillComboBox(HWND hDlg);
  33. void OnSetActive(HWND hDlg);
  34. BOOL OnSelChange(HWND hDlg, WPARAM wParam, LPARAM lParam);
  35. void GetPrinterData(HWND hwndControl, LPCTSTR pszAddress);
  36. private:
  37. ADD_PARAM_PACKAGE *m_pParams;
  38. CDevicePortList m_DPList;
  39. PORT_DATA_1 m_PortDataStandard;
  40. PORT_DATA_1 m_PortDataCustom;
  41. TCHAR m_szCurrentSelection[MAX_SECTION_NAME];
  42. }; // CMoreInfoDlg
  43. #ifdef __cplusplus
  44. extern "C" {
  45. #endif
  46. // Dialogs
  47. INT_PTR CALLBACK MoreInfoDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif // INC_ADDMOREINFO_H