⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainprint.cpp

📁 1.数据库文件名:spxxglxt(位置:商品销售管理系统商品销售管理系统dataspxxglxt_Data.MDF文件 和 商品销售管理系统商品销售管理系统dataspxxglxt_Log.LDF
💻 CPP
字号:
// CMainPrint.cpp : implementation of the CMainPrint class
//

#include "stdafx.h"
#include "商品销售管理系统.h"
#include "RxRecordset.h"
#include "MainPrint.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern CMyApp theApp;
static UINT indicators[] =
{
	ID_SEPARATOR,           // status line indicator
	ID_INDICATOR_CAPS,
	ID_INDICATOR_NUM,
	ID_INDICATOR_SCRL,
};
/////////////////////////////////////////////////////////////////////////////
// CMainPrint

IMPLEMENT_DYNCREATE(CMainPrint, CFrameWnd)

BEGIN_MESSAGE_MAP(CMainPrint, CFrameWnd)
	//{{AFX_MSG_MAP(CMainPrint)
	ON_WM_CREATE()
	ON_WM_CLOSE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMainPrint construction/destruction

CMainPrint::CMainPrint()
{
	// TODO: add member initialization code here
	
}

CMainPrint::~CMainPrint()
{
}

BOOL CMainPrint::PreCreateWindow(CREATESTRUCT& cs)
{
	if( !CFrameWnd::PreCreateWindow(cs) )
		return FALSE;

	return TRUE;
}

/////////////////////////////////////////////////////////////////////////////
// CMainPrint diagnostics

#ifdef _DEBUG
void CMainPrint::AssertValid() const
{
	CFrameWnd::AssertValid();
}

void CMainPrint::Dump(CDumpContext& dc) const
{
	CFrameWnd::Dump(dc);
}

#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMainPrint message handlers


BOOL CMainPrint::PreTranslateMessage(MSG* pMsg) 
{	
	return CFrameWnd::PreTranslateMessage(pMsg);
}
int CMainPrint::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
		return -1;
	
	if (!m_ToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
		| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
		!m_ToolBar.LoadToolBar(IDR_MAINFRAME))
	{
		TRACE0("Failed to create toolbar\n");
		return -1;      // fail to create
	}

	// TODO: Delete these three lines if you don't want the toolbar to
	//  be dockable
	m_ToolBar.EnableDocking(CBRS_ALIGN_ANY);
	EnableDocking(CBRS_ALIGN_ANY);
	DockControlBar(&m_ToolBar);
	this->ShowWindow(SW_SHOWMAXIMIZED);
	return 0;
}




void CMainPrint::OnClose() 
{
	CMyApp * app=(CMyApp*)AfxGetApp();
	app->m_pMainWnd=app->main_Wnd;
	
	CFrameWnd::OnClose();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -