LRESULT CLoginDlg::OnTimer( UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& /*bHandled*/ ) { if(wParam == 1) { GetFramework()->Update(); UISetDefault(ID_LOGIN, GetFramework()->IsConnected()); UISetDefault(IDC_BUTTON4, !GetFramework()->IsConnected()); UIEnable(ID_LOGIN, GetFramework()->IsConnected()); UIEnable(IDC_REGISTER, GetFramework()->IsConnected()); UIEnable(IDC_LOBBYS, GetFramework()->IsConnected()); UIEnable(IDC_FILESERVER, GetFramework()->IsConnected()); UIEnable(IDC_APPID , !GetFramework()->IsConnected()); UIEnable(IDC_SUBID , !GetFramework()->IsConnected()); UIEnable(IDC_COMBO1 , !GetFramework()->IsConnected()); UIUpdateChildWindows(); } return 0; }
BOOL [!output WTL_MAINDLG_CLASS]::OnIdle() { UIUpdateChildWindows(); return FALSE; }
BOOL CMainDlg::OnIdle() { UIUpdateChildWindows(); return FALSE; }