64,849
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
BOOL CALLBACK HostNameIPDlgPro(HWND hDlg, UINT message, WPARAM wPara, LPARAM lPara){
char str[256];
int number;
switch(message){
case WM_INITDIALOG:
return true;
case WM_COMMAND:
if(LOWORD(wPara)==IDOK){
GetDlgItemText(hDlg, IDC_NAME,str, 32);
number= atoi(str);
}
if(LOWORD(wPara)==IDCANCEL){
EndDialog(hDlg, true);
}
return true;
}
return false;
}
BOOL CALLBACK HostNameIPDlgPro(HWND hDlg, UINT message, WPARAM wPara, LPARAM lPara){
switch(message){
case WM_INITDIALOG:
return true;
case WM_COMMAND:
if(LOWORD(wPara)==IDOK){
GetDlgItemText(hDlg, IDC_ADDR, host_addr);
}
if(LOWORD(wPara)==IDCANCEL){
EndDialog(hDlg, true);
}
return true;
}
return false;
}