My study of VC++ ( FrameWnd and toobar refered )
来源:互联网 发布:淘宝有什么好吃的店铺 编辑:程序博客网 时间:2024/06/04 01:05
主框架窗口的定位
- 在SDI程序中,CWnd::GetParentFrame可以找到主框架窗口。
- 在MDI程序中,CWnd::GetParentFrame找到的是父框架的子框架,而不是MDI框架窗口
- 希望在SDI和MDI中都能工作,必须在应用程序对象中找到主框架窗口。而AfxGetApp全局函数返回一个指向应用程序对象的指针,可以通过它得到CWinapp数据成员m_pMainWnd。
CMainFrame * pFrame = ( CMainFrame * ) AfxGetApp()->m_pMainWnd;
CToolBar * pToolBar = &pFrame->m_wndToolBar;
- 在SDI程序中调用视图的OnCreate消息处理程序时,若需要访问主框架窗口,必须使用GetParentFrame函数
- My study of VC++ ( FrameWnd and toobar refered )
- My study of VC++ ( Doc&View&FrameWnd refered )
- My study of VC++ ( Command and Menu refered )
- My study of VC++ ( Paint refered )
- My Study experience of Design and Analysis of Algorithms (Part 1)
- My Study experience of Design and Analysis of Algorithms (Part 2)
- The end of my freshman study...
- My study note of PHP language(I)
- My study note of PHP language(II)
- My study note of PHP language(III)
- My study note of PHP language(IV)
- My study note of PHP language(V)
- toobar
- bone of my bones and flesh of my flesh
- Start to record my questions and solutions on my paleoanthropology study
- My understand of stack and queue
- My List of Perfect Software and Website
- VC study
- SPARC处理器的说明
- linux服务器的安装
- 累
- DirectX9 3D 快速上手 7
- java代数系统
- My study of VC++ ( FrameWnd and toobar refered )
- Linux主流文件格式
- 牛郎给孩子申请户口的报道(不笑也罢)
- My study of VC++ ( Paint refered )
- heavyz的Tomcat学习笔记
- 分区或文件夹无法双击打开的处理方法
- TOMCAT源码分析(启动框架)
- TOMCAT源码分析(消息处理)
- 我的第一篇博克日记