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

📄 diahelp.cpp

📁 This file (the project file) contains information at the project level and is used to build a sing
💻 CPP
字号:
// DIAHELP.cpp : implementation file
//

#include "stdafx.h"
#include "轧板标号检测演示.h"
#include "DIAHELP.h"

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

/////////////////////////////////////////////////////////////////////////////
// DIAHELP dialog


DIAHELP::DIAHELP(CWnd* pParent /*=NULL*/)
	: CDialog(DIAHELP::IDD, pParent)
{
	//{{AFX_DATA_INIT(DIAHELP)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void DIAHELP::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(DIAHELP)
	DDX_Control(pDX, IDC_HELPSHOW, m_help);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(DIAHELP, CDialog)
	//{{AFX_MSG_MAP(DIAHELP)
	ON_WM_CTLCOLOR()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// DIAHELP message handlers

BOOL DIAHELP::OnInitDialog() 
{
	CDialog::OnInitDialog();
	CString tempstr,tempstr2;
	tempstr="使用说明:\r\n";
	tempstr2="    1、使用菜单项 <操作菜单>-> <打开图像文件> 打开图像演示文件。";
	tempstr+=tempstr2;
	tempstr2="演示图像文件放在目录 <图片库> 下。";
	tempstr+=tempstr2;
	tempstr2="\r\n    2、菜单项 <重新装入数据> 可以重新加载当前图像文件。";
	tempstr+=tempstr2;
	tempstr2="\r\n    3、菜单项 <一步执行> 一步得到最终的运算结果。";
	tempstr+=tempstr2;
	tempstr2="\r\n    4、菜单项 <二值化效果> 单步执行,得到二值化运算结果。";
	tempstr+=tempstr2;

	tempstr2="\r\n    5、菜单项 <垂直投影> 单步执行,得到二值化运算结果的垂直投影分布。";
	tempstr+=tempstr2;
	tempstr2="\r\n    6、菜单项 <投影分区> 单步执行,得到垂直投影的分区图。";
	tempstr+=tempstr2;
	tempstr2="\r\n    7、菜单项 <字符识别> 单步执行,得到最终的识别结果。";
	tempstr+=tempstr2;

	m_help.SetWindowText(tempstr);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

HBRUSH DIAHELP::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
{
	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
	
	if(m_help.m_hWnd ==pWnd->m_hWnd )
	{
		pDC->SetTextColor(RGB(0,255,255));
		pDC->SetBkColor (RGB(0,0,255));
	}	
	// TODO: Return a different brush if the default is not desired
	return hbr;
}

⌨️ 快捷键说明

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