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

📄 allfunction.cpp

📁 用数字图像处理主要是为了修改图形,改善图像质量,或是从图像中提起有效信息,还有利用数字图像处理可以对图像进行体积.
💻 CPP
字号:
// AllFunction.cpp : 实现文件
//

#include "stdafx.h"
#include "MyInterface.h"
#include "AllFunction.h"
#include ".\allfunction.h"


// CAllFunction 对话框

IMPLEMENT_DYNAMIC(CAllFunction, CDialog)
CAllFunction::CAllFunction(CWnd* pParent /*=NULL*/)
	: CDialog(CAllFunction::IDD, pParent)
{	
}

CAllFunction::~CAllFunction()
{
}

void CAllFunction::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_TAB, m_Tab);
}


BEGIN_MESSAGE_MAP(CAllFunction, CDialog)
	ON_WM_SHOWWINDOW()
	ON_NOTIFY(TCN_SELCHANGE, IDC_TAB, OnTcnSelchangeTab)
	ON_NOTIFY(TCN_SELCHANGING, IDC_TAB, OnTcnSelchangingTab)	
	ON_WM_MOVE()
END_MESSAGE_MAP()


// CAllFunction 消息处理程序

void CAllFunction::OnShowWindow(BOOL bShow, UINT nStatus)
{
	CDialog::OnShowWindow(bShow, nStatus);

	// TODO: 在此处添加消息处理程序代码
	if(bShow)
	{		
		tabSearch.Create(IDD_TABSEARCH,CWnd::FromHandle(::GetDlgItem(this->m_hWnd,IDC_TAB)));
		tabSearch.ShowWindow(SW_SHOW);		
		tabNothing.Create(IDD_DIALOG1,CWnd::FromHandle(::GetDlgItem(this->m_hWnd,IDC_TAB)));
		tabNothing.ShowWindow(SW_HIDE);	
		//CRect rect;
		//::GetClientRect(::GetDlgItem(this->m_hWnd,IDC_TAB),&rect);
		////ClientToScreen(rect);
		//rect.top=rect.top+4;
		//rect.left=rect.left+4;
		//rect.right=rect.right-4;
		//rect.bottom=rect.bottom-4;
		//tabNothing.MoveWindow(rect.left,rect.top,rect.Width(),rect.Height());
		//tabSearch.MoveWindow(rect.left,rect.top,rect.Width(),rect.Height());
	}
}

void CAllFunction::OnTcnSelchangeTab(NMHDR *pNMHDR, LRESULT *pResult)
{
	// TODO: 在此添加控件通知处理程序代码
	switch(m_Tab.GetCurSel())
	{
	case 0: tabSearch.ShowWindow(SW_SHOW);
		break;
	case 1: tabNothing.ShowWindow(SW_SHOW);
		break;
	}
	*pResult = 0;
}

void CAllFunction::OnTcnSelchangingTab(NMHDR *pNMHDR, LRESULT *pResult)
{
	// TODO: 在此添加控件通知处理程序代码
	switch(m_Tab.GetCurSel())
	{
	case 0: tabSearch.ShowWindow(SW_HIDE);
		break;
	case 1: tabNothing.ShowWindow(SW_HIDE);
		break;
	}
	*pResult = 0;
}

BOOL CAllFunction::OnInitDialog()
{
	CDialog::OnInitDialog();
	TC_ITEM theTC_ITEM;
	theTC_ITEM.mask=TCIF_TEXT;
	theTC_ITEM.pszText="图像搜索";
	m_Tab.InsertItem(0,&theTC_ITEM);
	theTC_ITEM.pszText="无操作";
	m_Tab.InsertItem(1,&theTC_ITEM);
	// TODO:  在此添加额外的初始化
	return TRUE;  // return TRUE unless you set the focus to a control
	// 异常: OCX 属性页应返回 FALSE
}







⌨️ 快捷键说明

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