Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
War3Container.cpp
Package: MFCReKey(1).rar [view]
Upload User: jinbin898
Upload Date: 2022-06-24
Package Size: 89k
Code Size: 1k
Category:
Game Hook Crack
Development Platform:
Visual C++
- // War3Container.cpp : 实现文件
- //
- #include "stdafx.h"
- #include "ReKey.h"
- #include "War3Container.h"
- // CWar3Container
- IMPLEMENT_DYNAMIC(CWar3Container, CStatic)
- CWar3Container::CWar3Container()
- {
- }
- CWar3Container::~CWar3Container()
- {
- }
- BEGIN_MESSAGE_MAP(CWar3Container, CStatic)
- ON_WM_RBUTTONUP()
- ON_WM_SETCURSOR()
- END_MESSAGE_MAP()
- // CWar3Container 消息处理程序
- extern CString g_war3InstallPath;
- void CWar3Container::OnRButtonUp(UINT nFlags, CPoint point)
- {
- // TODO: 在此添加消息处理程序代码和/或调用默认值
- POINT pt;
- GetCursorPos(&pt);
- CMenu menu;
- menu.CreatePopupMenu();
- if ( g_war3InstallPath.GetLength() != 0 )
- {
- menu.AppendMenu(MF_STRING,IDM_SETWAR3PATH,_T("重设war3路径"));
- }
- else
- {
- menu.AppendMenu(MF_STRING,IDM_SETWAR3PATH,_T("设置war3路径"));
- }
- menu.TrackPopupMenu(TPM_LEFTALIGN,pt.x,pt.y,this->GetParent());
- menu.Detach();
- menu.DestroyMenu();
- CStatic::OnRButtonUp(nFlags, point);
- }
- BOOL CWar3Container::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
- {
- // TODO: 在此添加消息处理程序代码和/或调用默认值
- HCURSOR hCursor = (HCURSOR)LoadImage(NULL,IDC_HAND,IMAGE_CURSOR,0,0,LR_SHARED);//LoadCursor(NULL,IDC_HAND);
- if (hCursor)
- {
- ::SetCursor(hCursor);
- return TRUE;
- }
- return CStatic::OnSetCursor(pWnd, nHitTest, message);
- }