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

📄 about_help.cpp

📁 本程序是居于对话框用access数据库开发的一个简单的销售管理系统
💻 CPP
字号:
// About_help.cpp : implementation file
//

#include "stdafx.h"
#include "WinNerComputers.h"
#include "About_help.h"

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

/////////////////////////////////////////////////////////////////////////////
// CAbout_help dialog


CAbout_help::CAbout_help(CWnd* pParent /*=NULL*/)
	: CDialog(CAbout_help::IDD, pParent)
{
	//{{AFX_DATA_INIT(CAbout_help)
	flage = FALSE;
	//}}AFX_DATA_INIT
}


void CAbout_help::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAbout_help)
	DDX_Control(pDX, IDC_BUTTON1, m_button1);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAbout_help, CDialog)
	//{{AFX_MSG_MAP(CAbout_help)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAbout_help message handlers

void CAbout_help::OnOK() 
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
}

BOOL CAbout_help::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here

	m_button1.LoadBitmaps(IDB_BITMAP6);
	
	MoveWindow(300,200,385,120);
	flage = FALSE;
	weith = FALSE;
	heigh = FALSE;
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

/*void CAbout_help::OnInformatons() 
{
	// TODO: Add your control notification handler code here
	
}*/

void CAbout_help::OnButton1() 
{
	// TODO: Add your control notification handler code here
	int nWidth;
	if(weith)
	{
		nWidth = 600;
	}
	else
	{
		nWidth = 400;
	}
	if(!heigh)
	{
		m_button1.LoadBitmaps(IDB_BITMAP6);
		for(int i = 120;i <= 600;i += 10)
		{
			Sleep(10);
			MoveWindow(300,120,nWidth,i); //
		}
		Invalidate(); //
	}
	else
	{
		m_button1.LoadBitmaps(IDB_BITMAP7);
		for(int j = 600;j >= 120;j -= 10)
		{
			Sleep(10);
			MoveWindow(300,120,nWidth,j);
		}//
		Invalidate();
	}
	heigh = !heigh;
}

⌨️ 快捷键说明

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