Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Handling Masked Edit Problem..
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Handling Masked Edit Problem..

 Post Reply Post Reply
Author
Message
jitu View Drop Down
Newbie
Newbie
Avatar

Joined: 29 April 2005
Location: Germany
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote jitu Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Alex H. View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 February 2004
Status: Offline
Points: 266
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alex H. Quote  Post ReplyReply Direct Link To This Post Posted: 15 June 2005 at 4:07am

Hi !

How did you subclass the Combobox using CXTMaskEdit ?

 

Regards

Back to Top
jitu View Drop Down
Newbie
Newbie
Avatar

Joined: 29 April 2005
Location: Germany
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote jitu Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Alex H. View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 February 2004
Status: Offline
Points: 266
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alex H. Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2005 at 5:05am

Thank you very much  !

It works

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.