Browse Source

无登录的窗口不显示。

Jeff 2 years ago
parent
commit
a57dca3137
2 changed files with 5 additions and 3 deletions
  1. 3 3
      GameAssist/GameAssist/Assist.rc
  2. 2 0
      GameAssist/GameAssist/GameAssistDlg.cpp

+ 3 - 3
GameAssist/GameAssist/Assist.rc

@@ -124,11 +124,11 @@ BEGIN
     PUSHBUTTON      "野练技能",IDC_BUTTON12,7,207,50,14
     PUSHBUTTON      "到指定NPC坐标",IDC_BUTTON13,7,230,57,14
     COMBOBOX        IDC_COMBO2,66,231,101,97,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
-    PUSHBUTTON      "Button14",IDC_BUTTON14,184,126,50,14
+    PUSHBUTTON      "Button14",IDC_BUTTON14,63,124,50,14
     COMBOBOX        IDC_COMBO_SKILL_LIST,64,208,48,90,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
     CONTROL         "攻击敌人",IDC_CHECK_ATTACK,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,117,209,43,10
-    LTEXT           "起始独侠",IDC_STATIC,124,107,28,8
-    COMBOBOX        CB_HERO,155,105,64,128,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
+    LTEXT           "起始独侠",IDC_STATIC,113,108,28,8
+    COMBOBOX        CB_HERO,144,106,46,128,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
 END
 
 

+ 2 - 0
GameAssist/GameAssist/GameAssistDlg.cpp

@@ -580,6 +580,8 @@ void CGameAssistDlg::OnBnClickedButton11() // ˢ
 	m_cbGameRole.ResetContent();
 	for (std::vector<GameAssist::GameWndInfo>::iterator it = GameAssist::g_vtGameWndInfo.begin(); it != GameAssist::g_vtGameWndInfo.end(); it++)
 	{
+		if (it->strGameRoleName.size() == 0)
+			continue;
 		if (it->pAction == NULL)
 			it->pAction = new GameAssist::CAction(it->hWnd);
 		nIndx = m_cbGameRole.AddString(it->strGameRoleName.c_str());