6.3w+
社区成员
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;
}
采用QT的前端界面QML框架,直接对本地数据库SQLite进行CURD操作;因采用QML技术,学员不需要懂得C++代码;