📄 codelog.cpp
字号:
// codelog.cpp : implementation file
//
#include "stdafx.h"
#include "flowerSaleSystem.h"
#include "codelog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// codelog dialog
codelog::codelog(CWnd* pParent /*=NULL*/)
: CDialog(codelog::IDD, pParent)
{
//{{AFX_DATA_INIT(codelog)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void codelog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(codelog)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(codelog, CDialog)
//{{AFX_MSG_MAP(codelog)
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// codelog message handlers
BOOL codelog::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_sheet.AddPage(&m_pe);
m_sheet.AddPage(&m_or);
m_sheet.Create(this,WS_CHILD | WS_VISIBLE , 0); //创建窗口
m_sheet.ModifyStyleEx(0,WS_EX_CONTROLPARENT);
m_sheet.ModifyStyle(0,WS_TABSTOP);
m_sheet.SetWindowPos(NULL,7,7,385,327,SWP_NOZORDER|SWP_NOSIZE|SWP_NOACTIVATE);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void codelog::OnPaint()
{
CPaintDC dc(this); // device context for painting
CDC memDC;
CBitmap bitmap;
BITMAP bmp;
bitmap.LoadBitmap(IDB_BITMAPsu);
bitmap.GetObject (sizeof(BITMAP),&bmp);
memDC.CreateCompatibleDC (&dc);
memDC.SelectObject (bitmap);
dc.BitBlt (0,0,bmp.bmWidth ,bmp.bmHeight ,&memDC,0,0,SRCCOPY);
// Do not call CDialog::OnPaint() for painting messages
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -