Exemplo n.º 1
0
void CAutoConnector::FailedToConnectBecauseNoWindowInList()
{
	p_sharedmem->RememberTimeOfLastFailedAttemptToConnect();

	int cySize = GetSystemMetrics(SM_CYSIZE);
	int cyMenuSize = GetSystemMetrics(SM_CYMENU);

	if (preferences.autoconnector_when_to_connect() == k_AutoConnector_Connect_Once)
	{
		if (cySize != 18 || cyMenuSize != 19)
		{
			OH_MessageBox_Error_Warning(
				"Cannot find table.\n\n"
				"It appears that your settings are not configured according to OpenHoldem specifications.\n"
				"You must ensure that XP themes are not used (Use Windows Classic style) and\n"
				"font size is set to normal.\n\n"
				"For more info, read the manual and visit the user forums.", 
				"Cannot find table");
		}
		else
		{
			OH_MessageBox_Error_Warning(
				"No valid tables found\n\n"
				"There seems to be no unserved table open\n"
				"or your table does not match the size and titlestring\n"
				"defined in your tablemaps.\n"
				"For more info, read the manual and visit the user forums.",
				"Cannot find table");
		}
	}
	GoIntoPopupBlockingMode();
}
Exemplo n.º 2
0
void CAutoConnector::FailedToConnectProbablyBecauseAllTablesAlreadyServed()
{
	write_log(preferences.debug_autoconnector(), "[CAutoConnector] Attempt to connect did fail\n");
	p_sharedmem->RememberTimeOfLastFailedAttemptToConnect();
	GoIntoPopupBlockingMode();
}
Exemplo n.º 3
0
void CAutoConnector::FailedToConnectBecauseNoWindowInList() {
	p_sharedmem->RememberTimeOfLastFailedAttemptToConnect();
	GoIntoPopupBlockingMode();
}