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

你可能感兴趣的:(windows)