示例#1
0
文件: serial.cpp 项目: vidarn/color4d
Bool SerialDialog::AskClose(void)
{
	String v;
	GetString(IDC_SERIALNUMBER,v);
	v.GetCString(str,SERIAL_SIZE-1);
	if (!Validate(str)) 
	{
		LONG time=GeGetTimer();
		GeShowMouse(MOUSE_BUSY);
		Enable(IDC_SERIALNUMBER,FALSE);
		while (GeGetTimer()-time<8000) {}
		Enable(IDC_SERIALNUMBER,TRUE);
		GeShowMouse(MOUSE_NORMAL);
		return TRUE;
	}
	return FALSE;
}
Bool SerialDialog::AskClose(void)
{
	String v;
	GetString(IDC_SERIALNUMBER, v);
	v.GetCString(str, SERIAL_SIZE - 1);
	if (!Validate(str))
	{
		Int32 time = GeGetTimer();
		GeShowMouse(MOUSE_BUSY);
		Enable(IDC_SERIALNUMBER, false);
		while (GeGetTimer() - time < 8000)
		{
		}
		Enable(IDC_SERIALNUMBER, true);
		GeShowMouse(MOUSE_NORMAL);
		return true;
	}
	return false;
}