Skip to content

Commit 912e694

Browse files
author
Oleksii Maryshchenko
committed
stdafx.h was added. Warning level was lowered to 3.
1 parent c24cefd commit 912e694

File tree

10 files changed

+53
-19
lines changed

10 files changed

+53
-19
lines changed

src/Command.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "stdafx.h"
12
#include "Command.h"
23

34
Command::~Command(void)

src/CommandParser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "stdafx.h"
12
#include "CommandParser.h"
23

34
CommandParser::CommandParser(void)

src/DockingFeature/NavigateTo.rc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Microsoft Visual C++ generated resource script.
22
//
3-
#include "windows.h"
43
#include "resource.h"
4+
#include <windows.h>
55
/////////////////////////////////////////////////////////////////////////////
66
// English (United States) resources
77

@@ -20,11 +20,11 @@ EXSTYLE WS_EX_TOPMOST | WS_EX_COMPOSITED
2020
CAPTION "Navigate To"
2121
FONT 8, "MS Shell Dlg", 0, 0, 0x0
2222
BEGIN
23-
EDITTEXT ID_COMMAND_EDIT,8,13,361,12
2423
DEFPUSHBUTTON "&>",IDOK,373,12,20,14,BS_ICON | BS_NOTIFY
25-
LISTBOX IDC_RESULTS_LIST,6,44,387,124,LBS_SORT | LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
2624
LTEXT "Results:",ID_UGO_RESULTS_LABEL,8,33,30,8
2725
LTEXT "",ID_UGO_RESULTS_CNT_LABEL,37,33,8,8
26+
CONTROL "",IDC_RESULTS_LIST,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_ALIGNLEFT | WS_TABSTOP,7,44,385,123,WS_EX_STATICEDGE
27+
COMBOBOX ID_COMMAND_EDIT,9,12,359,30,CBS_DROPDOWN | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
2828
END
2929

3030

src/DockingFeature/StaticDialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
//along with this program; if not, write to the Free Software
1616
//Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1717

18+
#include "stdafx.h"
1819
#include <stdio.h>
1920
#include "StaticDialog.h"
2021

src/DockingFeature/StaticDialog.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@
2222

2323
enum class PosAlign { left, right, top, bottom };
2424

25-
struct DLGTEMPLATEEX {
26-
WORD dlgVer;
27-
WORD signature;
28-
DWORD helpID;
29-
DWORD exStyle;
30-
DWORD style;
31-
WORD cDlgItems;
32-
short x;
33-
short y;
34-
short cx;
35-
short cy;
36-
// The structure has more fields but are variable length
37-
} ;
25+
//struct DLGTEMPLATEEX {
26+
// WORD dlgVer;
27+
// WORD signature;
28+
// DWORD helpID;
29+
// DWORD exStyle;
30+
// DWORD style;
31+
// WORD cDlgItems;
32+
// short x;
33+
// short y;
34+
// short cx;
35+
// short cy;
36+
// // The structure has more fields but are variable length
37+
//} ;
3838

3939
class StaticDialog : public Window
4040
{

src/NppPlugin.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
//along with this program; if not, write to the Free Software
1616
//Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1717

18+
#include "stdafx.h"
1819
#include "PluginDefinition.h"
1920
#include <shlwapi.h>
2021
#include "DockingFeature/NavigateToDlg.h"

src/PluginDefinition.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
//along with this program; if not, write to the Free Software
1717
//Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1818

19+
#include "stdafx.h"
1920
#include "PluginDefinition.h"
2021
#include "menuCmdID.h"
2122

vs.proj/NppPluginNavigateTo.vcxproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
<ClInclude Include="..\src\PluginInterface.h" />
3737
<ClInclude Include="..\src\resource.h" />
3838
<ClInclude Include="..\src\Scintilla.h" />
39+
<ClInclude Include="stdafx.h" />
3940
</ItemGroup>
4041
<ItemGroup>
4142
<ClCompile Include="..\src\Command.cpp" />
@@ -117,13 +118,13 @@
117118
</PropertyGroup>
118119
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
119120
<ClCompile>
120-
<PrecompiledHeader>NotUsing</PrecompiledHeader>
121-
<WarningLevel>Level4</WarningLevel>
121+
<PrecompiledHeader>Create</PrecompiledHeader>
122+
<WarningLevel>Level3</WarningLevel>
122123
<Optimization>Disabled</Optimization>
123124
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;NPPPLUGINDEMO_EXPORTS;_CRT_NONSTDC_NO_DEPRECATE;_CRT_SECURE_NO_WARNINGS;_CRT_NON_CONFORMING_SWPRINTFS=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
124125
<AdditionalIncludeDirectories>
125126
</AdditionalIncludeDirectories>
126-
<TreatWarningAsError>true</TreatWarningAsError>
127+
<TreatWarningAsError>false</TreatWarningAsError>
127128
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
128129
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
129130
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>

vs.proj/NppPluginNavigateTo.vcxproj.filters

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<ClInclude Include="..\src\resource.h" />
2828
<ClInclude Include="..\src\Scintilla.h" />
2929
<ClInclude Include="..\src\catch.hpp" />
30+
<ClInclude Include="stdafx.h" />
3031
</ItemGroup>
3132
<ItemGroup>
3233
<ResourceCompile Include="..\src\DockingFeature\NavigateTo.rc" />

vs.proj/stdafx.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// stdafx.h : include file for standard system include files,
2+
// or project specific include files that are used frequently, but
3+
// are changed infrequently
4+
//
5+
6+
#if !defined(AFX_STDAFX_H__D09837DF_FF3A_423D_AEE2_02AB427BFF92__INCLUDED_)
7+
#define AFX_STDAFX_H__D09837DF_FF3A_423D_AEE2_02AB427BFF92__INCLUDED_
8+
9+
#if _MSC_VER > 1000
10+
#pragma once
11+
#endif // _MSC_VER > 1000
12+
13+
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
14+
15+
#include <afxwin.h> // MFC core and standard components
16+
#include <afxext.h> // MFC extensions
17+
#include <afxdisp.h> // MFC Automation classes
18+
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
19+
20+
#ifndef _AFX_NO_AFXCMN_SUPPORT
21+
#include <afxcmn.h> // MFC support for Windows Common Controls
22+
#endif // _AFX_NO_AFXCMN_SUPPORT
23+
24+
//{{AFX_INSERT_LOCATION}}
25+
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
26+
27+
#endif // !defined(AFX_STDAFX_H__D09837DF_FF3A_423D_AEE2_02AB427BFF92__INCLUDED_)

0 commit comments

Comments
 (0)