在应用程序类中加入如下代码:

BOOL CClientApp::InitInstance()

{

    if (!ProcessShellCommand(cmdInfo))
            return FALSE;

    m_pMainWnd->SetWindowTextW( _T( "窗口标题" ) );

}

注意:SetWindowText必须在ProcessShellCommand创建文档之后使用,否则会运行错误。可直接将设置窗口标题的代码加到InitInstance的尾部。

相关文章:

  • 2021-08-10
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-12
  • 2022-01-10
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
相关资源
相似解决方案