标签:style color ar strong sp c on r amp
CIPAddressCtrl m_ipCtrl;
int GetAddress(byte& byteFirst, byte& byteTwo, byte& byteThree, byte& byteFour);
int GetAddress(DWORD& dwAddress);
byte byteIP[4];
(1).m_ipCtrl.GetAddress(byteIP[0], byteIP[1], byteIP[2], byteIP[3]);
CString转byte
CString strIPAddress;
m_ipCtrl.GetWindowText(strAddress);
(2).sscanf(strAddress, "%d.%d.%d.%d", &byteIP[0], &byteIP[1], &byteIP[2], &byteIP[3]);
void SetAddress(byte& byteFirst, byte& byteTwo, byte& byteThree, byte& byteFour);
void SetAddress(DWORD dwAddress);
m_ipCtrl.SetAddress(参数1, 参数2, 参数3, 参数4);
CStirng strIP(参数IP);
m_ipCtrl.SetWindowText(strIP);
m_ipCtrl.ClearAddress();
m_ipctrl.IsBlank();
标签:style color ar strong sp c on r amp
原文地址:http://www.cnblogs.com/fenglangxiaotian/p/4009916.html