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