![]() |
Handling Masked Edit Problem.. |
Post Reply
|
| Author | |
jitu
Newbie
Joined: 29 April 2005 Location: Germany Status: Offline Points: 21 |
Post Options
Thanks(0)
Quote Reply
Topic: Handling Masked Edit Problem..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
|
|
![]() |
|
Alex H.
Senior Member
Joined: 12 February 2004 Status: Offline Points: 266 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 June 2005 at 4:07am |
|
Hi ! How did you subclass the Combobox using CXTMaskEdit ?
Regards |
|
![]() |
|
jitu
Newbie
Joined: 29 April 2005 Location: Germany Status: Offline Points: 21 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Alex H.
Senior Member
Joined: 12 February 2004 Status: Offline Points: 266 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 June 2005 at 5:05am |
|
Thank you very much ! It works |
|
![]() |
|
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 |