当前位置:编程学习 > VC++ >>

VC中多文档工程中子窗口名称怎么改变?求细讲!

答案:在文档类里的OnNewDocument()函数中添加:SetTitle("你的名称");就可以了啊。
其他:Excerpt   from   msdn:   
    
  Gaining   Access   to   Other   Objects   in   Your   Application   
    
  From   object   How   to   access   other   objects     
  Document   Use   GetFirstViewPosition   and   GetNextView   to   access   the   document's   view   list.     
  Call   GetDocTemplate   to   get   the   document   template.   
      
  View   Call   GetDocument   to   get   the   document.     
  Call   GetParentFrame   to   get   the   frame   window.     
      
  Document   frame   window   Call   GetActiveView   to   get   the   current   view.     
  Call   GetActiveDocument   to   get   the   document   attached   to   the   current   view.   
      
  MDI   frame   window   Call   MDIGetActive   to   get   the   currently   active   CMDIChildWnd.     
    
  For   more   detailed   information,   please   refer   to   msdn   library;   Keyword:   CDocument. OnInitDialog()函数中SetWindowText(“你需要的名字”);

上一个:在VC++6.0上怎样调用AutoCAD
下一个:VC++6.0哪里可以下载

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,