資源簡介
C++實現(xiàn)按鍵精靈-完整版-vs2013-可以跑
模擬按鍵精靈發(fā)送鍵盤消息

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“replay.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?status?line?indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction
CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here
}
CMainframe::~CMainframe()
{
}
int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;
if?(!m_wndToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed?to?create?toolbar\n“);
return?-1;??????//?fail?to?create
}
if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
return?-1;??????//?fail?to?create
}
//?TODO:?Delete?these?three?lines?if?you?don‘t?want?the?toolbar?to
//??be?dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2507??2004-07-06?18:26??C++重現(xiàn)用戶操作\MainFrm.cpp
?????文件???????1581??2004-07-06?18:26??C++重現(xiàn)用戶操作\MainFrm.h
?????文件???????4209??2004-07-06?18:26??C++重現(xiàn)用戶操作\replay.cpp
?????文件???????4555??2004-07-06?18:26??C++重現(xiàn)用戶操作\replay.dsp
?????文件????????535??2004-07-06?18:26??C++重現(xiàn)用戶操作\replay.dsw
?????文件???????1356??2004-07-06?18:26??C++重現(xiàn)用戶操作\replay.h
?????文件??????50176??2007-10-10?21:17??C++重現(xiàn)用戶操作\replay.ncb
?????文件??????53760??2007-10-10?21:17??C++重現(xiàn)用戶操作\replay.opt
?????文件???????2032??2007-10-10?21:14??C++重現(xiàn)用戶操作\replay.plg
?????文件??????11872??2004-07-06?18:26??C++重現(xiàn)用戶操作\replay.rc
?????文件????????204??2013-06-18?22:41??C++重現(xiàn)用戶操作\replay.sln
????..A..H.?????68096??2013-06-18?22:41??C++重現(xiàn)用戶操作\replay.suo
?????文件???????1818??2004-07-06?18:26??C++重現(xiàn)用戶操作\replayDoc.cpp
?????文件???????1475??2004-07-06?18:26??C++重現(xiàn)用戶操作\replayDoc.h
?????文件???????4637??2004-07-06?18:26??C++重現(xiàn)用戶操作\replayView.cpp
?????文件???????1855??2004-07-06?18:26??C++重現(xiàn)用戶操作\replayView.h
?????文件???????1078??2004-07-06?18:26??C++重現(xiàn)用戶操作\res\replay.ico
?????文件????????398??2004-07-06?18:26??C++重現(xiàn)用戶操作\res\replay.rc2
?????文件???????1078??2004-07-06?18:26??C++重現(xiàn)用戶操作\res\replayDoc.ico
?????文件???????1078??2004-07-06?18:26??C++重現(xiàn)用戶操作\res\Toolbar.bmp
?????文件????????734??2004-07-06?18:26??C++重現(xiàn)用戶操作\resource.h
?????文件????????208??2004-07-06?18:26??C++重現(xiàn)用戶操作\StdAfx.cpp
?????文件???????1054??2004-07-06?18:26??C++重現(xiàn)用戶操作\StdAfx.h
?????目錄??????????0??2007-09-01?18:27??C++重現(xiàn)用戶操作\res
?????目錄??????????0??2013-06-18?22:41??C++重現(xiàn)用戶操作
-----------?---------??----------?-----??----
???????????????216296????????????????????25
- 上一篇:截圖工具及源碼
- 下一篇:基于C++MFC-RS485串口通信demo-完整版-代碼
評論
共有 條評論