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

📄 mydialog.cpp

📁 电脑编程技巧和源码。很不错的。
💻 CPP
字号:
// MyDialog.cpp : implementation file
//

#include "stdafx.h"
#include "thj60test.h"
#include "MyDialog.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMyDialog dialog


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


void CMyDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMyDialog)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMyDialog, CDialog)
	//{{AFX_MSG_MAP(CMyDialog)
	ON_WM_CONTEXTMENU()
	ON_WM_HELPINFO()
	ON_WM_CANCELMODE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyDialog message handlers
static DWORD myarray[] = {
IDC_CHECK1, 1,
IDC_COMBO1, 2,
IDC_IMAGE, 3,
IDOK,-1,
0,0
};

void CMyDialog::OnContextMenu(CWnd* pWnd, CPoint point) 
{
	// TODO: Add your message handler code here
//HtmlHelp(pWnd->GetSafeHwnd(),"my_chm.chm::/ctrlhlp.txt",HH_TP_HELP_CONTEXTMENU,
//(DWORD)(LPVOID)myarray);
TRACE("entering CMyDialog::OnContextMenu\n");
HtmlHelp(pWnd->GetSafeHwnd(),"VCHelp0916.chm::/HH0916.txt",HH_TP_HELP_CONTEXTMENU,
(DWORD)(LPVOID)myarray);
}

BOOL CMyDialog::OnHelpInfo(HELPINFO* pHelpInfo) 
{
	// TODO: Add your message handler code here and/or call default
if (pHelpInfo->iContextType == HELPINFO_WINDOW)
{return HtmlHelp((HWND)pHelpInfo->hItemHandle,"VCHelp0916.chm::/HH0916.txt",HH_TP_HELP_WM_HELP,
(DWORD)(LPVOID)myarray) != NULL;}
	
	return CDialog::OnHelpInfo(pHelpInfo);
}

void CMyDialog::OnCancelMode() 
{
	CDialog::OnCancelMode();
	
	// TODO: Add your message handler code here
	
}

⌨️ 快捷键说明

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