资源简介
用MFC做的软键盘。
详细见
http://blog.csdn.net/shunqiziranhao007/article/details/7800478
代码片段和文件信息
// OnScreenKeyboard.cpp : Defines the class behaviors for the application.
/*
功能,实现了一个软键盘的功能,但是还是不完善。
日期,2012年5月16日 星期三
环境,vc6
*/
#include “stdafx.h“
#include “OnScreenKeyboard.h“
#include “OnScreenKeyboardDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// COnScreenKeyboardApp
BEGIN_MESSAGE_MAP(COnScreenKeyboardApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()
// COnScreenKeyboardApp construction
COnScreenKeyboardApp::COnScreenKeyboardApp()
{
// 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 COnScreenKeyboardApp object
COnScreenKeyboardApp theApp;
// COnScreenKeyboardApp initialization
BOOL COnScreenKeyboardApp::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“));
COnScreenKeyboardDlg 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;
}
- 上一篇:winhttp 异步c++库
- 下一篇:八数码问题C++代码
相关资源
- VC++调用大漠插件
- VC++用MKL产生正态分布随机数、计算样
- 基于MFC仿QQ聊天程序设计完整教程
- MFC_Clock.zip
- 梅尔倒谱系数MFCC的matlab代码
- mfc绘制数学函数图像
- mfc生成excel-pdf图表
- 漂亮的MFC进度条
- MFC 动态曲线 支持缩放
- gridctrl_demo
- VC++ 使用RSA算法防止非法注册机破解软
- 学生管理系统,mfc做的,本人课设作
- VC++开发GIS系统代码陈建春书
- 模拟的DBMS
- MFC窗体设计
- MFC自定义列表listcontrol
- MFC利用CSOCKET实现的小小聊天室
- VC++ MFC MSCOMM VS2010 手把手学会串口收发
- C++ 家庭理财管理系统
- MFC开发的数学公式编辑器
- VC6.0调用大漠函数(实现找图按键_制
- VC界面+悬浮+停靠窗口+很经典的代码
- mfc编写的简单聊天程序
- VC6窗体dll,带热键,自身卸载(源码
- VC++解析并显示JPEG图片showjpeg.rar
- 传智播客MFC第三天项目
- mfc waveout播放器
- vc++能够显示网页html
- VCLSkin 5.60.for.Delphi.C++Builder 5-2010 Full
- vc6.0上位机教程.docx
评论
共有 条评论