UIIPAddress.h 735 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef __UIIPADDRESS_H__
  2. #define __UIIPADDRESS_H__
  3. #pragma once
  4. //给该控件添加一个属性dtstyle
  5. namespace DuiLib
  6. {
  7. class CIPAddressWnd;
  8. /// 时间选择控件
  9. class UILIB_API CIPAddressUI : public CLabelUI
  10. {
  11. DECLARE_DUICONTROL(CIPAddressUI)
  12. friend class CIPAddressWnd;
  13. public:
  14. CIPAddressUI();
  15. LPCTSTR GetClass() const;
  16. LPVOID GetInterface(LPCTSTR pstrName);
  17. DWORD GetIP();
  18. void SetIP(DWORD dwIP);
  19. void SetReadOnly(bool bReadOnly);
  20. bool IsReadOnly() const;
  21. void UpdateText();
  22. void DoEvent(TEventUI& event);
  23. void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
  24. protected:
  25. DWORD m_dwIP;
  26. bool m_bReadOnly;
  27. int m_nIPUpdateFlag;
  28. CIPAddressWnd* m_pWindow;
  29. };
  30. }
  31. #endif // __UIIPADDRESS_H__