如何分屏幕(How to split the Screen)
来源:互联网 发布:穿针引线软件下载 编辑:程序博客网 时间:2024/05/29 11:41
/* */
/* Function name : OnCreateClient */
/* Description : Create some splitter windows. */
/* */
/********************************************************************/
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/, CCreateContext* pContext)
{
// create splitter window
if (!m_wndSplitter.CreateStatic(this, 2, 1))
return FALSE;
// add the second splitter pane - a message view in raw 1
if (!m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CTraceView), CSize(0, 0), pContext))
return FALSE;
// split the first splitter pane
if (!m_wndSplitter2.CreateStatic(&m_wndSplitter, 1, 2, WS_CHILD|WS_VISIBLE|WS_BORDER, m_wndSplitter.IdFromRowCol(0, 0)))
{
return FALSE;
};
// add default view to the first pane
if (!m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CFtpTreeView), CSize(100, 100), pContext))
{
return FALSE;
};
// add list view to the second pane
if (!m_wndSplitter2.CreateView(0, 1, RUNTIME_CLASS(CFtpListView), CSize(100, 100), pContext))
{
return FALSE;
};
// remember CTraceView pointer
CWnd* pWnd = m_wndSplitter.GetPane(1, 0);
m_pTraceView = DYNAMIC_DOWNCAST(CTraceView, pWnd);
CRect rc;
GetClientRect(&rc);
m_wndSplitter.SetRowInfo(0, rc.Height()*3/4, 50);
m_wndSplitter.SetRowInfo(1, rc.Height()/4, 50);
m_wndSplitter2.SetColumnInfo(0, 200, 10);
m_wndSplitter2.SetActivePane(0, 0);
m_bInitialized = TRUE;
// Initialize Tree Control here
// PopulateTree();
m_bShowTrace = AfxGetApp()->GetProfileInt("Settings", "ShowTrace", 1);
if (!m_bShowTrace)
m_wndSplitter.HideRow(1);
// show connect dialog
if (AfxGetApp()->GetProfileInt("Settings", "ShowConnectionDlg", 1))
PostMessage(WM_COMMAND, ID_FILE_CONNECT);
// save view style
int nViewStyle = AfxGetApp()->GetProfileInt("Settings", "ViewStyle", ID_VIEW_LARGEICON);
OnViewStyle(nViewStyle);
return TRUE;
}
- 如何分屏幕(How to split the Screen)
- [转]如何分屏幕(How to split the Screen)
- 如何修改Screen背景?How to - Change the background color of a screen
- How to use the Journal Import Correction Screen - from Metalink
- wiki: How to grab the desktop (screen) with FFmpeg
- Tutorial 02: Outputting to the Screen输出到屏幕
- [转]How to easy split the Android boot image
- HOW TO:溅射屏幕(Splash Screen),也叫程序启动画面的制作(.NET2003)
- HOW TO:溅射屏幕(Splash Screen),也叫程序启动画面的制作(.NET2005)
- HOW TO:溅射屏幕(Splash Screen),也叫程序启动画面的制作(.NET2003)
- how to unzip split file
- How to draw image to screen directly
- How to capture screen to bitmap如何实现截屏(Symbian)
- How to replace the boot screen with one of your own
- How To Print a Form That Is Too Large for the Screen or Page
- How to solve: when using tab in gnomeTerminal , the entire screen flash,
- How to Use HTML5 FUll Screen API(如何使用HTML5全屏接口)
- How To Set Screen Elements Status.
- 写在今天下午!
- test成功
- MSN Messenger聊天机器人颁奖典礼
- 如何在工具栏中,加上图标和文字?(How To Add Icon And Text)
- 如何嵌入(Docking)一个工具条(How To Docking A Toolbar)
- 如何分屏幕(How to split the Screen)
- 曲终人不散
- How To Get Application Path,And How To Get The Path's Directory,File Name,And Type Info(如何得到运行程序的路径,以及如何得到路径的文件夹,文件名,以及类型等等信息)
- Tomcat安装与瑞星2004
- 注册表
- JNDI简介&简单示例
- 《因父之名》
- 在 Linux 下使用优盘。
- C#截取屏幕↑