Regarding CIPAddressCtrl

Regarding CIPAddressCtrl

Post by koti » Thu, 10 Nov 2005 22:48:37


Hi,

Here i am facing problem with, CIPAddressCtrl.

i have created a dilaog based application. In this application i have used
CTabCtrl and CIPAddressCtrl.
I have placed the IPAdress control praent dilaog,not on any tabs. And i
have created one combobox in tab1. Here my need is when there is a change in
the ComboBox, it has to read the value of IPAddrss Control value and based
on that value we will assign some value to this Combobox.

Here i am facing the problem ,"GETTING THE VALUE FROM
IPADDRSSCTRL(WHICH PLACED ON THE PARENT DIALOG) FROM THE TAB DIALOGBOX
CONTROL.".

so,tell me how can i resolve this problem.


regards,
koti
 
 
 

Regarding CIPAddressCtrl

Post by Nishant Si » Fri, 11 Nov 2005 00:09:03

AfxGetMainWnd will return the dialog's CWnd as this is a dialog based app,
and you can cast it to the dialog class type and access the DDX member for
the ip address control.

--
Regards,
Nish [VC++ MVP]