05-21-2023, 10:22 AM
Hello.
I managed to add a button 'Refresh' to update state when a channel is busy or down.
For example when the game server is still loading obv the client will mark as down.
Without make Exit and Relog I'd like to reload information.
I did this but does not work:
if (m_pWnd != NULL)
{
switch (m_cmdTpye)
{
case GotoLogin:
m_pWnd->GotoLogin();
break;
case ConnectServer:
m_pWnd->ConnectServer();
break;
case Refresh:
m_pWnd->UpdateServerList();
....
I tried also:
m_pWnd->ResetServerAndChannelData();
m_pWnd->Lock(TRUE);
Sleep(500);
m_pWnd->Lock(FALSE);
m_pWnd->UpdateServerList();
but does not work either.
If toggling m_pWnd->CloseUI() and m_pWnd->OpenUI() the form of selection does not appear anymore.
Does anyone how to fix this or If my approach is totally wrong?
Thanks
Best Regards

