资源简介
这是一个工程实例,将实现为对话框中的控件定义光标热区,即当鼠标光标位于某个控件上时,改变鼠标的显示光标,并给出该控件的描述性信息。
代码片段和文件信息
// CursorHotDemo.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “CursorHotDemo.h“
#include “CursorHotDemoDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CCursorHotDemoApp
BEGIN_MESSAGE_MAP(CCursorHotDemoApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()
// CCursorHotDemoApp construction
CCursorHotDemoApp::CCursorHotDemoApp()
{
// support Restart Manager
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
// The one and only CCursorHotDemoApp object
CCursorHotDemoApp theApp;
// CCursorHotDemoApp initialization
BOOL CCursorHotDemoApp::InitInstance()
{
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles. Otherwise any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
AfxEnableControlContainer();
// Create the shell manager in case the dialog contains
// any shell tree view or shell list view controls.
CShellManager *pShellManager = new CShellManager;
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need
// Change the registry key under which our settings are stored
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));
CCursorHotDemoDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Delete the shell manager created above.
if (pShellManager != NULL)
{
delete pShellManager;
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-10-03 10:40 CursorHotDemo\
目录 0 2012-10-03 10:32 CursorHotDemo\CursorHotDemo\
文件 110700 2012-10-03 10:32 CursorHotDemo\CursorHotDemo\CursorHotDemo.aps
文件 2560 2012-10-02 22:07 CursorHotDemo\CursorHotDemo\CursorHotDemo.cpp
文件 547 2012-10-02 21:29 CursorHotDemo\CursorHotDemo\CursorHotDemo.h
文件 11824 2012-10-03 10:32 CursorHotDemo\CursorHotDemo\CursorHotDemo.rc
文件 6009 2012-10-03 10:29 CursorHotDemo\CursorHotDemo\CursorHotDemo.vcxproj
文件 2155 2012-10-02 22:14 CursorHotDemo\CursorHotDemo\CursorHotDemo.vcxproj.filters
文件 143 2012-10-02 21:29 CursorHotDemo\CursorHotDemo\CursorHotDemo.vcxproj.user
文件 4693 2012-10-03 10:28 CursorHotDemo\CursorHotDemo\CursorHotDemoDlg.cpp
文件 723 2012-10-03 10:25 CursorHotDemo\CursorHotDemo\CursorHotDemoDlg.h
目录 0 2012-10-03 10:32 CursorHotDemo\CursorHotDemo\Debug\
文件 51580 2012-10-03 10:29 CursorHotDemo\CursorHotDemo\Debug\CL.read.1.tlog
文件 2482 2012-10-03 10:29 CursorHotDemo\CursorHotDemo\Debug\CL.write.1.tlog
文件 667 2012-10-03 10:29 CursorHotDemo\CursorHotDemo\Debug\CursorHotDemo.exe.em
文件 732 2012-10-03 10:29 CursorHotDemo\CursorHotDemo\Debug\CursorHotDemo.exe.em
文件 381 2012-10-03 10:32 CursorHotDemo\CursorHotDemo\Debug\CursorHotDemo.exe.intermediate.manifest
文件 96 2012-10-03 10:32 CursorHotDemo\CursorHotDemo\Debug\CursorHotDemo.lastbuildstate
文件 2288 2012-10-03 10:32 CursorHotDemo\CursorHotDemo\Debug\CursorHotDemo.log
文件 29851 2012-10-03 10:29 CursorHotDemo\CursorHotDemo\Debug\CursorHotDemo.obj
文件 33619968 2012-10-03 10:29 CursorHotDemo\CursorHotDemo\Debug\CursorHotDemo.pch
文件 74200 2012-10-03 10:32 CursorHotDemo\CursorHotDemo\Debug\CursorHotDemo.res
文件 43583 2012-10-03 10:29 CursorHotDemo\CursorHotDemo\Debug\CursorHotDemoDlg.obj
文件 216 2012-10-03 10:05 CursorHotDemo\CursorHotDemo\Debug\CursorHotDemo_manifest.rc
文件 2728 2012-10-03 10:29 CursorHotDemo\CursorHotDemo\Debug\cl.command.1.tlog
文件 2 2012-10-03 10:32 CursorHotDemo\CursorHotDemo\Debug\li
文件 2 2012-10-03 10:32 CursorHotDemo\CursorHotDemo\Debug\li
文件 2460 2012-10-03 10:32 CursorHotDemo\CursorHotDemo\Debug\li
文件 5764 2012-10-03 10:32 CursorHotDemo\CursorHotDemo\Debug\li
文件 1930 2012-10-03 10:32 CursorHotDemo\CursorHotDemo\Debug\li
文件 728 2012-10-03 10:32 CursorHotDemo\CursorHotDemo\Debug\mt.command.1.tlog
............此处省略26个文件信息
相关资源
- C++大作业 MFC实现个人通讯录
- 北邮程序实践--基于VS2010MFC的简单聊天
- 2013VS MFC 闹钟小程序
- 基于MFC点对点聊天程序
- VS2010基于对话框的MFC串口通信简明例
- MFC调用QT页面
- 基于OpenCV和MFC实现布匹瑕疵检测.rar
- 兄弟fax2820mfc7220维修手册
- 车道线检测MFC程序
- 仿QQ聊天系统
- VS2010 MFC读写文件
- MFC-High_Speed Charting绘制动态曲线
- 基于MFC图片去雾增强程序
- 导线网平差程序
- MFC实现Koch曲线的绘制
- 基于RFID的MFC考勤管理系统
- MFC 象棋 完备功能 含有AI
- 深入浅出MFC第二版+源码
- MFC入门教程完整整合版
- 网络编程C++ MFC获取MAC地址
- VS2008MFC动态波形的绘制
- 面向对象程序设计 旅店管理系统
- MFC中将两个独立的程序合并为一个程
- 英语学习软件,类似于四级背单词软
- 对对碰 MFC实现 有源码
- C++ MFC 餐饮管理系统
- 基于opencv和MFC的多功能视频、图像处
- mfc画y=x^2的曲线
- 中英语种识别matlab程序包含40个测试音
- mqtt-client MFC工程调用开源代码
评论
共有 条评论