18,356
社区成员
发帖
与我相关
我的任务
分享
// TODO: Add your control notification handler code here
if (0 == m_Conn.Connect("127.0.0.1",1500))
{
GetDlgItem(IDC_BTN_CONNECT)->EnableWindow(FALSE);
GetDlgItem(IDC_BTN_SEND)->EnableWindow(TRUE);
GetDlgItem(IDC_BTN_CLOSE)->EnableWindow(TRUE);
}