diff --git a/server/2015Remote/2015RemoteDlg.cpp b/server/2015Remote/2015RemoteDlg.cpp index 354821f..a28aa89 100644 --- a/server/2015Remote/2015RemoteDlg.cpp +++ b/server/2015Remote/2015RemoteDlg.cpp @@ -2062,6 +2062,11 @@ BOOL CMy2015RemoteDlg::OnInitDialog() pSysMenu->AppendMenuL(MF_STRING, IDM_ABOUTBOX, strAboutMenu); } + // InitControl 必须在任何可能抽取消息队列的调用(如 MessageBoxL)之前完成, + // 否则队列中已有的 WM_SHOWMESSAGE 会在列表列尚未创建时被处理,导致 + // SetItemText(0,1,...)/SetItemText(0,2,...) 静默失败,造成首条记录列1/2为空。 + InitControl(); + UPDATE_SPLASH(40, "正在加载授权模块..."); // 主控程序公网IP std::string ip = THIS_CFG.GetStr("settings", "master", ""); @@ -2144,7 +2149,6 @@ BOOL CMy2015RemoteDlg::OnInitDialog() isClosed = FALSE; CreateToolBar(); - InitControl(); UPDATE_SPLASH(75, "正在创建界面组件..."); CreatStatusBar();