FixSplitter.cpp
资源名称:QQ示例源码.rar [点击查看]
上传用户:power_led
上传日期:2013-04-11
资源大小:373k
文件大小:2k
源码类别:
ICQ/即时通讯
开发平台:
Visual C++
- // FixSplitter.cpp : implementation file
- //
- #include "stdafx.h"
- #include "ChatClient.h"
- #include "FixSplitter.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CFixSplitter
- IMPLEMENT_DYNCREATE(CFixSplitter, CSplitterWnd)
- CFixSplitter::CFixSplitter()
- {
- }
- CFixSplitter::~CFixSplitter()
- {
- }
- BOOL CFixSplitter::OnCreateClient(LPCREATESTRUCT /*lpcs*/, CCreateContext* pContext)
- {
- return m_wndSplitter.Create(this,
- 2, 2, // TODO: adjust the number of rows, columns
- CSize(300, 100), // TODO: adjust the minimum pane size
- pContext);
- }
- BEGIN_MESSAGE_MAP(CFixSplitter, CSplitterWnd)
- //{{AFX_MSG_MAP(CFixSplitter)
- ON_WM_SIZE()
- ON_WM_GETMINMAXINFO()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CFixSplitter message handlers
- BOOL CFixSplitter::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
- {
- // TODO: Add your specialized code here and/or call the base class
- return CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext);
- }
- void CFixSplitter::OnSize(UINT nType, int cx, int cy)
- {
- CSplitterWnd::OnSize(nType, cx, cy);
- // TODO: Add your message handler code here
- }
- void CFixSplitter::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
- {
- // TODO: Add your message handler code here and/or call default
- CSplitterWnd::OnGetMinMaxInfo(lpMMI);
- lpMMI->ptMinTrackSize.x = 100;
- lpMMI->ptMinTrackSize.y = 200;
- lpMMI->ptMaxTrackSize.x = 200;
- lpMMI->ptMaxTrackSize.y = 300;
- }