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

📄 framedlg.cpp

📁 用算法来实现一个收费系统
💻 CPP
字号:
// FrameDlg.cpp : implementation file
//

#include "stdafx.h"
#include "LaneSoft.h"
#include "FrameDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CFrameDlg dialog


CFrameDlg::CFrameDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CFrameDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CFrameDlg)
	//}}AFX_DATA_INIT
}


void CFrameDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFrameDlg)
	DDX_Control(pDX, IDC_PRINT_WIN, m_Printer_Win);
	DDX_Control(pDX, IDC_VIDEO_WIN, m_Video_Win);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CFrameDlg, CDialog)
	//{{AFX_MSG_MAP(CFrameDlg)
	ON_WM_CREATE()
	ON_WM_PAINT()
	ON_WM_DESTROY()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFrameDlg message handlers

int CFrameDlg::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	if (CDialog::OnCreate(lpCreateStruct) == -1)
		return -1;
	
	// TODO: Add your specialized creation code here
	m_rect.left = 799-493;
	m_rect.top = 20;
	m_rect.right = 779;
	m_rect.bottom = 599-210;

	m_wndpl.length = sizeof(WINDOWPLACEMENT);
	m_wndpl.flags = 0;
	m_wndpl.showCmd = SW_SHOW;
	m_wndpl.rcNormalPosition = m_rect;
	SetWindowPlacement(&m_wndpl);
	m_DIB.LoadFromFile(".\\res\\FRAME.bmp");

	return 0;
}

void CFrameDlg::OnPaint() 
{
	CPaintDC dc(this); // device context for painting
	
	// TODO: Add your message handler code here
	if(m_DIB.m_pBMI ==NULL || m_DIB.m_pDIBData == NULL)
		return;
	CRect rect;
	CDC *pDC = GetDC();

	GetClientRect(rect);
	m_DIB.ShowDIB(pDC,0,0,rect.Width(),rect.Height());

	ReleaseDC(pDC);

	// Do not call CDialog::OnPaint() for painting messages
}

BOOL CFrameDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_Video_Win.SendMessage(WM_START_VIDEO,0,0);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CFrameDlg::OnDestroy() 
{
	m_Video_Win.SendMessage(WM_START_VIDEO,1,0);

	CDialog::OnDestroy();
	
	// TODO: Add your message handler code here
	
}


⌨️ 快捷键说明

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