- PCHify notepad and add missing header from regedit.

svn path=/trunk/; revision=20704
This commit is contained in:
Alex Ionescu
2006-01-08 10:09:23 +00:00
parent d0b4d13b4f
commit 5d4d6485f2
8 changed files with 52 additions and 48 deletions
+1 -14
View File
@@ -20,20 +20,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define UNICODE
#define _UNICODE
#define _CRT_SECURE_NO_DEPRECATE
#include <assert.h>
#include <stdio.h>
#include <windows.h>
#include <commdlg.h>
#include <tchar.h>
#include "main.h"
#include "license.h"
#include "dialog.h"
#include <notepad.h>
static const WCHAR helpfileW[] = { 'n','o','t','e','p','a','d','.','h','l','p',0 };
+3 -4
View File
@@ -18,14 +18,13 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <windows.h>
#include "license.h"
#include <notepad.h>
VOID WineLicense(HWND Wnd)
{
/* FIXME: should load strings from resources */
LICENSE *License = &WineLicense_En;
MessageBox(Wnd, License->License, License->LicenseCaption,
MessageBoxA(Wnd, License->License, License->LicenseCaption,
MB_ICONINFORMATION | MB_OK);
}
@@ -34,7 +33,7 @@ VOID WineWarranty(HWND Wnd)
{
/* FIXME: should load strings from resources */
LICENSE *License = &WineLicense_En;
MessageBox(Wnd, License->Warranty, License->WarrantyCaption,
MessageBoxA(Wnd, License->Warranty, License->WarrantyCaption,
MB_ICONEXCLAMATION | MB_OK);
}
+1 -12
View File
@@ -22,18 +22,7 @@
*
*/
#define UNICODE
#define _UNICODE
#define _CRT_SECURE_NO_DEPRECATE
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#include "main.h"
#include "dialog.h"
#include "notepad_res.h"
#include <notepad.h>
NOTEPAD_GLOBALS Globals;
static ATOM aFINDMSGSTRING;
+15
View File
@@ -0,0 +1,15 @@
#define UNICODE
#define _UNICODE
#define _CRT_SECURE_NO_DEPRECATE
#include <assert.h>
#include <stdio.h>
#include <windows.h>
#include <commdlg.h>
#include <tchar.h>
#include "main.h"
#include "license.h"
#include "dialog.h"
@@ -15,4 +15,5 @@
<file>text.c</file>
<file>settings.c</file>
<file>rsrc.rc</file>
<pch>notepad.h</pch>
</module>
+1 -10
View File
@@ -20,16 +20,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define UNICODE
#define _UNICODE
#include <assert.h>
#include <stdio.h>
#include <windows.h>
#include <commdlg.h>
#include <tchar.h>
#include "main.h"
#include <notepad.h>
static const TCHAR s_szRegistryKey[] = { 'S','o','f','t','w','a','r','e',
'\\','M','i','c','r','o','s','o','f','t',
+1 -8
View File
@@ -20,14 +20,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define UNICODE
#include <assert.h>
#include <stdio.h>
#include <windows.h>
#include <commdlg.h>
#include "main.h"
#include <notepad.h>
static BOOL Append(LPWSTR *ppszText, DWORD *pdwTextLen, LPCWSTR pszAppendText, DWORD dwAppendLen)
{
+29
View File
@@ -0,0 +1,29 @@
#ifndef _REGEDIT_H
#define _REGEDIT_H
#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
#include <windows.h>
#include <commctrl.h>
#include <shellapi.h>
#include <shlwapi.h>
#include <stdlib.h>
#include <tchar.h>
#include <process.h>
#include <stdio.h>
#include <limits.h>
#include <accctrl.h>
#include <objbase.h>
#include <basetyps.h>
#include <unknwn.h>
#include <aclui.h>
#include <commdlg.h>
#include <cderr.h>
#include <ole2.h>
#include <objbase.h>
#include <objsel.h>
#include <assert.h>
#include "main.h"
#include "regproc.h"
#include "hexedit.h"
#include "security.h"
#endif