求IP地址控件
BCB中,IP控件都是参考妖哥的做法
TInitCommonControlsEx CommCtrl;
CommCtrl.dwSize = sizeof(TInitCommonControlsEx);
CommCtrl.dwICC = ICC_INTERNET_CLASSES;//指定Class
if(InitCommonControlsEx(&CommCtrl))
{
IPHwd = CreateWindow(WC_IPADDRESS,NULL,
WS_CHILD|WS_VISIBLE,
115, //Left
55, //Top
130, //Width
21, //Height
GroupBoxMode->Handle, //这个是父窗口的句柄
0,
0,
NULL);
}
SendMessage (IPHwd, WM_SETFONT, (WPARAM)Font->Handle, 0);