Print Page | Close Window

Handling Masked Edit Problem..

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2266
Printed Date: 09 November 2025 at 7:54am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Handling Masked Edit Problem..
Posted By: jitu
Subject: Handling Masked Edit Problem..
Date Posted: 23 May 2005 at 5:10am
I am trying to provide IP address selection in my derived combo box. I am using subclassed CXTMaskEdit to provide input for the combo. This is working correctly. Now how do i provide validations for the ip address? Also masked edit requires exactly same no. of characters to be entered as the mask. For Eg. if the mask is "000.000.000.000" and i want to enter "132.67.22.1" how do i manage this? Pl. help urgently.

-------------
Regards



Replies:
Posted By: Alex H.
Date Posted: 15 June 2005 at 4:07am

Hi !

How did you subclass the Combobox using CXTMaskEdit ?

 

Regards



Posted By: jitu
Date Posted: 17 June 2005 at 12:23am

hi,

Add a combo control thru dialog editr on your dialog

create your derived class for combo

you have to use PreSubclassWindow() message handler in the derived combobox and use

 m_MaskedEdit->SubclassWindow( ((CXTMaskEdit *) GetDlgItem(1001))->m_hWnd );

Always 1001 is default ID for an edit control inside a combo

 



-------------
Regards


Posted By: Alex H.
Date Posted: 20 June 2005 at 5:05am

Thank you very much  !

It works




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net