CVI本身不可以改变英文,再次我们采取Windows编程方式改变。
Win32 API中的函数MessageBox可以解决此问题。
首先给一个例子:
#include<windows.h>
int main()
{
int result = MessageBox( NULL , TEXT("确认退出程序?") , TEXT("提示信息") , MB_ICONINFORMATION|MB_YESNO);
switch(result)/*注意!使用Unicode应用TEXT包围字串*/
{
case IDYES: //6
MessageBox(NULL,TEXT("您选择了YES"),TEXT("YES"),MB_OK);
break;
case IDNO: //7
MessageBox(NULL,TEXT("您选择了NO"),TEXT("NO"),MB_OK);
break;
}
return 0;
}