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
2.6 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corporation, 1991 - 1999 **/
  4. /**********************************************************************/
  5. /*
  6. DLGBINED
  7. Binary Editor dialog
  8. FILE HISTORY:
  9. */
  10. #ifndef _DLGBINED_H
  11. #define _DLGBINED_H
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CDlgBinEd dialog
  14. class CDlgBinEd : public CBaseDialog
  15. {
  16. // Construction
  17. public:
  18. CDlgBinEd( CDhcpOption * pdhcType,
  19. DHCP_OPTION_SCOPE_TYPE dhcScopeType,
  20. CWnd* pParent = NULL); // standard constructor
  21. // Dialog Data
  22. //{{AFX_DATA(CDlgBinEd)
  23. enum { IDD = IDD_BINARY_EDITOR };
  24. CButton m_butn_hex;
  25. CButton m_butn_decimal;
  26. CStatic m_static_unit_size;
  27. CStatic m_static_option_name;
  28. CStatic m_static_application;
  29. CListBox m_list_values;
  30. CEdit m_edit_value;
  31. CButton m_butn_delete;
  32. CButton m_butn_add;
  33. CButton m_button_Up;
  34. CButton m_button_Down;
  35. //}}AFX_DATA
  36. // Implementation
  37. CDhcpOption * m_p_type ;
  38. DHCP_OPTION_SCOPE_TYPE m_option_type ;
  39. CDWordArray m_dw_array ;
  40. CDWordDWordArray m_dwdw_array ;
  41. BOOL m_b_decimal ;
  42. BOOL m_b_changed ;
  43. // Handle changes in the dialog
  44. void HandleActivation () ;
  45. // Fill the list box
  46. void Fill ( INT cFocus = -1, BOOL bToggleRedraw = TRUE ) ;
  47. // Convert the existing values into an array for dialog manipualation
  48. void FillArray () ;
  49. // Safely extract the edit value.
  50. int GetEditValue () ;
  51. BOOL ConvertValue ( DWORD dwValue, CString & strValue ) ;
  52. BOOL ConvertValue ( DWORD_DWORD dwdwValue, CString & strValue ) ;
  53. // Context Help Support
  54. virtual DWORD * GetHelpMap() { return DhcpGetHelpMap(CDlgBinEd::IDD); }
  55. protected:
  56. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  57. // Generated message map functions
  58. //{{AFX_MSG(CDlgBinEd)
  59. afx_msg void OnClickedRadioDecimal();
  60. afx_msg void OnClickedRadioHex();
  61. virtual BOOL OnInitDialog();
  62. afx_msg void OnClickedButnAdd();
  63. afx_msg void OnClickedButnDelete();
  64. afx_msg void OnClickedButnDown();
  65. afx_msg void OnClickedButnUp();
  66. afx_msg void OnSelchangeListValues();
  67. virtual void OnOK();
  68. virtual void OnCancel();
  69. afx_msg void OnChangeEditValue();
  70. //}}AFX_MSG
  71. DECLARE_MESSAGE_MAP()
  72. };
  73. #endif _DLGBINED_H