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

📄 cpldemo.h

📁 控制面板程序设计-在控制面板上加一个测试组件
💻 H
字号:
// cpldemo.h : main header file for the CPLDEMO DLL
//

#include "ctrlpan.h"
#if !defined(AFX_CPLDEMO_H__FCFC2CFB_2A0F_11D4_90ED_0080C8E9D363__INCLUDED_)
#define AFX_CPLDEMO_H__FCFC2CFB_2A0F_11D4_90ED_0080C8E9D363__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols

/////////////////////////////////////////////////////////////////////////////
// CCpldemoApp
// See cpldemo.cpp for the implementation of this class
//
//New class for control
///////////
class CCPLApp : public CControlPanel
{
public:
//virtual LONG OnInit();
//virtual LONG OnInquire(UINT uAppNum, NEWCPLINFO* pInfo); 
//virtual LONG OnDblClk(HWND hwndCPl, UINT uAppNum, LONG lData); 
};
//////////////////////
class CCpldemoApp : public CWinApp
{
public:
	CCpldemoApp();
	CCPLApp  ConPal;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCpldemoApp)
	//}}AFX_VIRTUAL

	//{{AFX_MSG(CCpldemoApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CPLDEMO_H__FCFC2CFB_2A0F_11D4_90ED_0080C8E9D363__INCLUDED_)

/*
LONG CCPLApp::OnDblClk(HWND hwndCPl, UINT uAppNum, LONG lData)
{
	AfxMessageBox("双击");
	return 1;
}
LONG CCPLApp::OnInquire(UINT uAppNum, NEWCPLINFO* pInfo)
{
	pInfo->dwSize = sizeof(NEWCPLINFO);
    pInfo->dwFlags = 0;
    pInfo->dwHelpContext = 0;
    pInfo->lData = 0;
    pInfo->hIcon = ::LoadIcon(AfxGetResourceHandle(), MAKEINTRESOURCE(1));
    strcpy(pInfo->szName, "CPL测试");
    strcpy(pInfo->szInfo, "默认控制面板测试");
    strcpy(pInfo->szHelpFile, "");
    AfxMessageBox("查询");
	return 1;
}


*/

⌨️ 快捷键说明

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