日期:2014-05-17  浏览次数:20871 次

Labwindows/CVI 添加退出确认对话框

int CVICALLBACK Quit (int panel, int event, void *callbackData,
		int eventData1, int eventData2)
{
	switch (event)
	{
		case EVENT_GOT_FOCUS:

			break;
		case EVENT_LOST_FOCUS:

			break;
		case EVENT_CLOSE:
			if (ConfirmPopup ("Quit", "Are you sure?"))
				QuitUserInterface (0);  
			break;
	}
	return 0;
}
?