1.如何在文档的工具栏上根据我的需要显示文本信息?
2.如何更改程序的Captain?

解决方案 »

  1.   

    1.用toolbarctrl来显示
    2.AfxGetMainWnd()->SetWindowText("xxx");
      

  2.   

    1. 最好用CStatusBa状态栏
    2. 先重载OnUpdateFrameTitle
    .h
    ......
    virtual void OnUpdateFrameTitle(BOOL bAddToTitle);
    .......cpp
    ......
    void CMainFrame::OnUpdateFrameTitle(BOOL bAddToTitle)
    {
    }然后调用SetWindowText
      

  3.   

    AfxGetMainWnd()->SetWindowText("xxx");没有用,程序左上角还是“无标题”
      

  4.   

    在 MainFrm.cpp 中CMainFrame::PreCreateWindow(CREATESTRUCT& cs) 函数里添加  cs.style &= ~(LONG) FWS_ADDTOTITLE;
    return CFrameWnd::PreCreateWindow(cs);
      

  5.   

    1.修改属性中的prompt
    2.GetDlgItem(ID)->SetWindowText()