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.

64 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1998
  6. //
  7. // File: ipaddr.hpp
  8. //
  9. //--------------------------------------------------------------------------
  10. //
  11. // IPADDR.HPP: IPADDRESS control implementation file.
  12. //
  13. #if !defined(_IPADDR_HPP_)
  14. #define _IPADDR_HPP_
  15. class CWndIpAddress : public CWnd
  16. {
  17. DECLARE_DYNAMIC(CWndIpAddress)
  18. protected:
  19. static WNDPROC m_wproc_super ;
  20. static BOOL m_b_inited ;
  21. public:
  22. CWndIpAddress () ;
  23. ~ CWndIpAddress () ;
  24. BOOL Create(LPCTSTR lpszText,
  25. DWORD dwStyle,
  26. const RECT& rect,
  27. CWnd* pParentWnd,
  28. UINT nID = 0xffff
  29. );
  30. WNDPROC * GetSuperWndProcAddr() ;
  31. // Modification flag handling
  32. void SetModify ( BOOL bModified ) ;
  33. BOOL GetModify () const ;
  34. // Set focus on a particular sub-field
  35. void SetFocusField(int iField);
  36. void ClearAddress () ;
  37. void SetFieldRange (int dwField, int dwMin, int dwMax);
  38. void SetReadOnly (BOOL fReadonly = TRUE);
  39. void SetField(int dwField, BOOL fSet = FALSE, BYTE bValue = 0x00);
  40. BOOL SetAddress (DWORD dwAddr) ;
  41. BOOL GetAddress (DWORD * pdwAddr ) const ;
  42. BYTE GetMask() const ;
  43. BOOL SetMask(DWORD dwAddr, BYTE bMask);
  44. BOOL IsBlank();
  45. // One-shot initialization
  46. static BOOL CreateWindowClass ( HINSTANCE hInstance ) ;
  47. };
  48. #endif // _IPADDR_HPP_