IP address control
-
how to differenciate the empty value (. . . .) and 0.0.0.0 in ip address control. I used CWnd* pwndCtrl = GetFocus(); int ctrl_ID = pwndCtrl->GetDlgCtrlID(); if (!((CIPAddressCtrl*)pwndCtrl)->IsBlank()) but it treat the . . . . and 0.0.0.0 values as same.
-
how to differenciate the empty value (. . . .) and 0.0.0.0 in ip address control. I used CWnd* pwndCtrl = GetFocus(); int ctrl_ID = pwndCtrl->GetDlgCtrlID(); if (!((CIPAddressCtrl*)pwndCtrl)->IsBlank()) but it treat the . . . . and 0.0.0.0 values as same.
-
You are not initializing the control. Use ClearAddress() function in OnInitDialog(). It will display 0.0.0.0 from start.
after calling the Clearaddress() also its not displaying the 0.0.0.0 CWnd* pwndCtrl = GetFocus(); ((CIPAddressCtrl*)pwndCtrl)->ClearAddress(); could you please suggest