Skip to content

Commit e89447a

Browse files
committed
Spy++
1 parent f49c761 commit e89447a

21 files changed

+899
-0
lines changed

24-窗口查看器/Spy++.exe

1.67 MB
Binary file not shown.

24-窗口查看器/Spy++/Spy++.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 11.00
3+
# Visual Studio 2010
4+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Spy++", "Spy++\Spy++.vcxproj", "{1967BD5F-DAE7-40FC-AE78-A4D7AA657073}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Win32 = Debug|Win32
9+
Release|Win32 = Release|Win32
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{1967BD5F-DAE7-40FC-AE78-A4D7AA657073}.Debug|Win32.ActiveCfg = Debug|Win32
13+
{1967BD5F-DAE7-40FC-AE78-A4D7AA657073}.Debug|Win32.Build.0 = Debug|Win32
14+
{1967BD5F-DAE7-40FC-AE78-A4D7AA657073}.Release|Win32.ActiveCfg = Release|Win32
15+
{1967BD5F-DAE7-40FC-AE78-A4D7AA657073}.Release|Win32.Build.0 = Release|Win32
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
================================================================================
2+
MICROSOFT �������: Spy++ ��Ŀ����
3+
===============================================================================
4+
5+
Ӧ�ó�������Ϊ����������� Spy++ Ӧ�ó��򡣴�Ӧ�ó��򲻽���ʾ Microsoft ������Ļ���ʹ�÷�����������Ϊ����дӦ�ó������㡣
6+
7+
���ļ���Ҫ������� Spy++ Ӧ�ó����ÿ���ļ������ݡ�
8+
9+
Spy++.vcxproj
10+
����ʹ��Ӧ�ó��������ɵ� VC++ ��Ŀ������Ŀ�ļ���
11+
���������ɸ��ļ��� Visual C++ �İ汾��Ϣ���Լ��й�ʹ��Ӧ�ó�����ѡ���ƽ̨�����ú���Ŀ���ܵ���Ϣ��
12+
13+
Spy++.vcxproj.filters
14+
����ʹ�á�Ӧ�ó����򵼡����ɵ� VC++ ��Ŀɸѡ���ļ���
15+
�������й���Ŀ�ļ���ɸѡ��֮��Ĺ�����Ϣ���� IDE �У�ͨ�����ֹ��������ض��ڵ����Է�����ʽ��ʾ����������չ�����ļ������磬��.cpp���ļ��롰Դ�ļ���ɸѡ��������
16+
17+
Spy++.h
18+
����Ӧ�ó������Ҫͷ�ļ���������������Ŀ�ض���ͷ�ļ�(���� Resource.h)�������� CSpyApp Ӧ�ó����ࡣ
19+
20+
Spy++.cpp
21+
���ǰ���Ӧ�ó����� CSpyApp ����ҪӦ�ó���Դ�ļ���
22+
23+
Spy++.rc
24+
���dz���ʹ�õ����� Microsoft Windows ��Դ���б��������� RES ��Ŀ¼�д洢��ͼ�ꡢλͼ�͹�ꡣ���ļ�����ֱ���� Microsoft Visual C++ �н��б༭����Ŀ��Դλ�� 2052 �С�
25+
26+
res\Spy++.ico
27+
��������Ӧ�ó���ͼ���ͼ���ļ�����ͼ���������Ҫ��Դ�ļ� Spy++.rc �С�
28+
29+
res\Spy.rc2
30+
���ļ��������� Microsoft Visual C++ �н��б༭����Դ����Ӧ�ý���������Դ�༭���༭��������Դ���ڴ��ļ��С�
31+
32+
33+
/////////////////////////////////////////////////////////////////////////////
34+
35+
Ӧ�ó����򵼴���һ���Ի�����:
36+
37+
Spy++Dlg.h��Spy++Dlg.cpp - �Ի���
38+
��Щ�ļ����� CSpyDlg �ࡣ���ඨ��Ӧ�ó������Ի������Ϊ���öԻ����ģ��λ�� Spy++.rc �У����ļ������� Microsoft Visual C++ �н��б༭��
39+
40+
41+
/////////////////////////////////////////////////////////////////////////////
42+
43+
��������:
44+
45+
ActiveX �ؼ�
46+
Ӧ�ó��������ʹ�� ActiveX �ؼ���֧�֡�
47+
48+
��ӡ����ӡԤ��֧��
49+
Ӧ�ó�������ͨ���� MFC ����� CView ���еij�Ա���������������ڴ�����ӡ����ӡ���úʹ�ӡԤ������Ĵ��롣
50+
51+
/////////////////////////////////////////////////////////////////////////////
52+
53+
������׼�ļ�:
54+
55+
StdAfx.h��StdAfx.cpp
56+
��Щ�ļ�����������Ϊ Spy++.pch ��Ԥ����ͷ (PCH) �ļ�����Ϊ StdAfx.obj ��Ԥ���������ļ���
57+
58+
Resource.h
59+
���DZ�׼ͷ�ļ����������µ���Դ ID��
60+
Microsoft Visual C++ ��ȡ�����´��ļ���
61+
62+
Spy++.manifest
63+
Ӧ�ó����嵥�ļ��� Windows XP ��������Ӧ�ó���
64+
���ض��汾���г��򼯵������ԡ����س���ʹ�ô�
65+
��Ϣ�ӳ��򼯻�������ʵ��ij��򼯻�
66+
��Ӧ�ó������˽����Ϣ��Ӧ�ó����嵥����Ϊ�����·ַ�����Ϊ
67+
��Ӧ�ó����ִ���ļ���װ����ͬ�ļ����е��ⲿ .manifest �ļ�������
68+
Ҳ��������Դ����ʽ�����ڸÿ�ִ���ļ��С�
69+
/////////////////////////////////////////////////////////////////////////////
70+
71+
����ע��:
72+
73+
Ӧ�ó�����ʹ�á�TODO:��ָʾӦ���ӻ��Զ����Դ���벿�֡�
74+
75+
���Ӧ�ó����ڹ����� DLL ��ʹ�� MFC������Ҫ���·�����Щ MFC DLL�����Ӧ�ó������õ����������ϵͳ�ĵ�ǰ�������ò�ͬ������Ҫ���·�����Ӧ�ı��ػ���Դ MFC100XXX.DLL���й�����������ĸ�����Ϣ����μ� MSDN �ĵ����й� Redistributing Visual C++ applications (���·��� Visual C++ Ӧ�ó���)���½ڡ�
76+
77+
/////////////////////////////////////////////////////////////////////////////
107 KB
Binary file not shown.
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
2+
// Spy++.cpp : 定义应用程序的类行为。
3+
//
4+
5+
#include "stdafx.h"
6+
#include "Spy++.h"
7+
#include "Spy++Dlg.h"
8+
9+
#ifdef _DEBUG
10+
#define new DEBUG_NEW
11+
#endif
12+
13+
14+
// CSpyApp
15+
16+
BEGIN_MESSAGE_MAP(CSpyApp, CWinApp)
17+
ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
18+
END_MESSAGE_MAP()
19+
20+
21+
// CSpyApp 构造
22+
23+
CSpyApp::CSpyApp()
24+
{
25+
// 支持重新启动管理器
26+
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;
27+
28+
// TODO: 在此处添加构造代码,
29+
// 将所有重要的初始化放置在 InitInstance 中
30+
}
31+
32+
33+
// 唯一的一个 CSpyApp 对象
34+
35+
CSpyApp theApp;
36+
37+
38+
// CSpyApp 初始化
39+
40+
BOOL CSpyApp::InitInstance()
41+
{
42+
// 如果一个运行在 Windows XP 上的应用程序清单指定要
43+
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
44+
//则需要 InitCommonControlsEx()。否则,将无法创建窗口。
45+
INITCOMMONCONTROLSEX InitCtrls;
46+
InitCtrls.dwSize = sizeof(InitCtrls);
47+
// 将它设置为包括所有要在应用程序中使用的
48+
// 公共控件类。
49+
InitCtrls.dwICC = ICC_WIN95_CLASSES;
50+
InitCommonControlsEx(&InitCtrls);
51+
52+
CWinApp::InitInstance();
53+
54+
55+
AfxEnableControlContainer();
56+
57+
// 创建 shell 管理器,以防对话框包含
58+
// 任何 shell 树视图控件或 shell 列表视图控件。
59+
CShellManager *pShellManager = new CShellManager;
60+
61+
// 标准初始化
62+
// 如果未使用这些功能并希望减小
63+
// 最终可执行文件的大小,则应移除下列
64+
// 不需要的特定初始化例程
65+
// 更改用于存储设置的注册表项
66+
// TODO: 应适当修改该字符串,
67+
// 例如修改为公司或组织名
68+
SetRegistryKey(_T("应用程序向导生成的本地应用程序"));
69+
70+
CSpyDlg dlg;
71+
m_pMainWnd = &dlg;
72+
INT_PTR nResponse = dlg.DoModal();
73+
if (nResponse == IDOK)
74+
{
75+
// TODO: 在此放置处理何时用
76+
// “确定”来关闭对话框的代码
77+
}
78+
else if (nResponse == IDCANCEL)
79+
{
80+
// TODO: 在此放置处理何时用
81+
// “取消”来关闭对话框的代码
82+
}
83+
84+
// 删除上面创建的 shell 管理器。
85+
if (pShellManager != NULL)
86+
{
87+
delete pShellManager;
88+
}
89+
90+
// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
91+
// 而不是启动应用程序的消息泵。
92+
return FALSE;
93+
}
94+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
// Spy++.h : PROJECT_NAME 应用程序的主头文件
3+
//
4+
5+
#pragma once
6+
7+
#ifndef __AFXWIN_H__
8+
#error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件"
9+
#endif
10+
11+
#include "resource.h" // 主符号
12+
13+
14+
// CSpyApp:
15+
// 有关此类的实现,请参阅 Spy++.cpp
16+
//
17+
18+
class CSpyApp : public CWinApp
19+
{
20+
public:
21+
CSpyApp();
22+
23+
// 重写
24+
public:
25+
virtual BOOL InitInstance();
26+
27+
// 实现
28+
29+
DECLARE_MESSAGE_MAP()
30+
};
31+
32+
extern CSpyApp theApp;
11.7 KB
Binary file not shown.
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
</ItemGroup>
13+
<PropertyGroup Label="Globals">
14+
<ProjectGuid>{1967BD5F-DAE7-40FC-AE78-A4D7AA657073}</ProjectGuid>
15+
<RootNamespace>Spy</RootNamespace>
16+
<Keyword>MFCProj</Keyword>
17+
</PropertyGroup>
18+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
19+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
20+
<ConfigurationType>Application</ConfigurationType>
21+
<UseDebugLibraries>true</UseDebugLibraries>
22+
<CharacterSet>Unicode</CharacterSet>
23+
<UseOfMfc>Static</UseOfMfc>
24+
</PropertyGroup>
25+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
26+
<ConfigurationType>Application</ConfigurationType>
27+
<UseDebugLibraries>false</UseDebugLibraries>
28+
<WholeProgramOptimization>true</WholeProgramOptimization>
29+
<CharacterSet>Unicode</CharacterSet>
30+
<UseOfMfc>Static</UseOfMfc>
31+
</PropertyGroup>
32+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
33+
<ImportGroup Label="ExtensionSettings">
34+
</ImportGroup>
35+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
36+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
37+
</ImportGroup>
38+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
39+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
40+
</ImportGroup>
41+
<PropertyGroup Label="UserMacros" />
42+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
43+
<LinkIncremental>true</LinkIncremental>
44+
</PropertyGroup>
45+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
46+
<LinkIncremental>false</LinkIncremental>
47+
</PropertyGroup>
48+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
49+
<ClCompile>
50+
<PrecompiledHeader>Use</PrecompiledHeader>
51+
<WarningLevel>Level3</WarningLevel>
52+
<Optimization>Disabled</Optimization>
53+
<PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
54+
</ClCompile>
55+
<Link>
56+
<SubSystem>Windows</SubSystem>
57+
<GenerateDebugInformation>true</GenerateDebugInformation>
58+
</Link>
59+
<Midl>
60+
<MkTypLibCompatible>false</MkTypLibCompatible>
61+
<ValidateAllParameters>true</ValidateAllParameters>
62+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
63+
</Midl>
64+
<ResourceCompile>
65+
<Culture>0x0804</Culture>
66+
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
67+
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
68+
</ResourceCompile>
69+
</ItemDefinitionGroup>
70+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
71+
<ClCompile>
72+
<WarningLevel>Level3</WarningLevel>
73+
<PrecompiledHeader>Use</PrecompiledHeader>
74+
<Optimization>MaxSpeed</Optimization>
75+
<FunctionLevelLinking>true</FunctionLevelLinking>
76+
<IntrinsicFunctions>true</IntrinsicFunctions>
77+
<PreprocessorDefinitions>WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
78+
</ClCompile>
79+
<Link>
80+
<SubSystem>Windows</SubSystem>
81+
<GenerateDebugInformation>true</GenerateDebugInformation>
82+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
83+
<OptimizeReferences>true</OptimizeReferences>
84+
</Link>
85+
<Midl>
86+
<MkTypLibCompatible>false</MkTypLibCompatible>
87+
<ValidateAllParameters>true</ValidateAllParameters>
88+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
89+
</Midl>
90+
<ResourceCompile>
91+
<Culture>0x0804</Culture>
92+
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
93+
<AdditionalIncludeDirectories>$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
94+
</ResourceCompile>
95+
</ItemDefinitionGroup>
96+
<ItemGroup>
97+
<None Include="ReadMe.txt" />
98+
<None Include="res\choose.cur" />
99+
<None Include="res\point.cur" />
100+
<None Include="res\Spy++.ico" />
101+
<None Include="res\Spy.rc2" />
102+
<None Include="res\wait.cur" />
103+
</ItemGroup>
104+
<ItemGroup>
105+
<ClInclude Include="Resource.h" />
106+
<ClInclude Include="Spy++.h" />
107+
<ClInclude Include="Spy++Dlg.h" />
108+
<ClInclude Include="stdafx.h" />
109+
<ClInclude Include="targetver.h" />
110+
</ItemGroup>
111+
<ItemGroup>
112+
<ClCompile Include="Spy++.cpp" />
113+
<ClCompile Include="Spy++Dlg.cpp" />
114+
<ClCompile Include="stdafx.cpp">
115+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
116+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
117+
</ClCompile>
118+
</ItemGroup>
119+
<ItemGroup>
120+
<ResourceCompile Include="Spy++.rc" />
121+
</ItemGroup>
122+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
123+
<ImportGroup Label="ExtensionTargets">
124+
</ImportGroup>
125+
<ProjectExtensions>
126+
<VisualStudio>
127+
<UserProperties RESOURCE_FILE="Spy++.rc" />
128+
</VisualStudio>
129+
</ProjectExtensions>
130+
</Project>

0 commit comments

Comments
 (0)