📄 mainfrm.cpp
字号:
// MainFrm.cpp : implementation of the CMainFrame class
//
#include "stdafx.h"
#include "短信群发.h"
#include "MyFormView.h"
#include "MyTreeView.h"
#include "MyListView.h"
#include "MainFrm.h"
#include "UserDialog.h"
#include "IndentDialog.h"
#include "LogDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainFrame
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
//{{AFX_MSG_MAP(CMainFrame)
ON_COMMAND(ID_USER_MANAGER, OnUserManager)
ON_COMMAND(ID_LIST_MANAGER, OnListManager)
ON_COMMAND(ID_LOG_MANAGE, OnLogManage)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR, // status line indicator
ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
};
/////////////////////////////////////////////////////////////////////////////
// CMainFrame construction/destruction
CMainFrame::CMainFrame()
{
// TODO: add member initialization code here
}
CMainFrame::~CMainFrame()
{
}
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMainFrame diagnostics
#ifdef _DEBUG
void CMainFrame::AssertValid() const
{
CFrameWnd::AssertValid();
}
void CMainFrame::Dump(CDumpContext& dc) const
{
CFrameWnd::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMainFrame message handlers
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
// TODO: Add your specialized code here and/or call the base class
//return CFrameWnd::OnCreateClient(lpcs, pContext);
CRect rc;
GetClientRect(rc);
CSize paneSize(200,200);
m_splitter.CreateStatic(this,1,2);
m_splitter.CreateView(0,0,RUNTIME_CLASS(CMyTreeView),CSize(250,0),pContext);
m_secondsplitter.CreateStatic(&m_splitter,2,1,WS_CHILD|WS_VISIBLE,m_splitter.IdFromRowCol(0,1));
m_secondsplitter.CreateView(0,0,RUNTIME_CLASS(CMyListView),CSize(0,200),pContext);
m_secondsplitter.CreateView(1,0,RUNTIME_CLASS(CMyFormView),CSize(0,0),pContext);
return TRUE;
}
void CMainFrame::OnUserManager() //用户管理
{
CUserDialog user;
user.DoModal();
}
void CMainFrame::OnListManager()
{
CIndentDialog indent;
indent.DoModal();
}
void CMainFrame::OnLogManage()
{
CLogDialog log;
log.DoModal();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -