63,594
社区成员




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;
}