BYTE f1, f2, f3, f4;
((CIPAddressCtrl*)GetDlgItem(IP控件ID))->GetAddress(f1, f2, f3, f4); CString str;
str.Format(L("%d:%d:%d:%d"), f1, f2, f3, f4);
MessageBox(str);
不能使用GetDlgItemtext,GetWindowText。
BYTE f1, f2, f3, f4;
((CIPAddressCtrl*)GetDlgItem(IP控件ID))->GetAddress(f1, f2, f3, f4); CString str;
str.Format(L("%d:%d:%d:%d"), f1, f2, f3, f4);
MessageBox(str);
不能使用GetDlgItemtext,GetWindowText。