Handling TCPIP address |
Post Reply |
Author | |
yoavm
Groupie Joined: 15 July 2006 Status: Offline Points: 47 |
Post Options
Thanks(0)
Posted: 01 October 2007 at 6:50pm |
How should I define TCPIP address field? Thanks, yoavm |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
try this custom item:
class CCustomItemIPAddress : public CXTPPropertyGridItem
{ class CInplaceEditIPAddress : public CXTPPropertyGridInplaceEdit { public: BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext) { if (!CWnd::Create(WC_IPADDRESS, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext)) return FALSE; ModifyStyle(WS_BORDER, 0); ModifyStyleEx(WS_EX_CLIENTEDGE, 0, SWP_FRAMECHANGED); return TRUE; } }; public:
CCustomItemIPAddress::CCustomItemIPAddress(CString strCaption) : CXTPPropertyGridItem(strCaption) { } protected:
virtual CXTPPropertyGridInplaceEdit& GetInplaceEdit() { return m_wndEdit; } private:
CInplaceEditIPAddress m_wndEdit; };
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |