📄 manager.cpp
字号:
// Manager.cpp : implementation file
//
#include "stdafx.h"
#include "SuperMarket.h"
#include "Manager.h"
#include "ProTypeEditDlg.h"
#include "ProTypeManDlg.h"
#include "SuperMarketDlg.h"
#include "ProEditDlg.h"
#include "ProManDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CManager dialog
CManager::CManager(CWnd* pParent /*=NULL*/)
: CDialog(CManager::IDD, pParent)
{
//{{AFX_DATA_INIT(CManager)
m_strLabel = _T("");
//}}AFX_DATA_INIT
}
void CManager::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CManager)
DDX_Control(pDX, IDC_ST_BACK, m_back);
DDX_Text(pDX, IDC_STATIC1, m_strLabel);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CManager, CDialog)
//{{AFX_MSG_MAP(CManager)
ON_COMMAND(IDR_PROTYPE, OnProtype)
ON_COMMAND(IDR_PRODUCT, OnProduct)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CManager message handlers
BOOL CManager::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
/* char AppPathName[100];
GetModuleFileName(NULL,AppPathName,100);
CString PathName=(CString)AppPathName;
CString FileName = "";
if(PathName.ReverseFind('\\')>0)
PathName=PathName.Left(PathName.ReverseFind('\\')+1);
FileName = PathName + "\\Pic\\back.bmp";
backmap=(HBITMAP)LoadImage(AfxGetInstanceHandle(), FileName,IMAGE_BITMAP,0,0,LR_LOADFROMFILE|LR_CREATEDIBSECTION);
m_back.SetBitmap(backmap);
GetDlgItem(IDC_ST_BACK)->MoveWindow(CRect(0,0,600,500));
*/
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CManager::OnProtype()
{
// TODO: Add your command handler code here
CProTypeManDlg myprotype;
myprotype.DoModal();
}
void CManager::OnProduct()
{
// TODO: Add your command handler code here
CProManDlg myproman;
myproman.DoModal();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -