mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 17:57:05 +00:00
- PCHify notepad and add missing header from regedit.
svn path=/trunk/; revision=20704
This commit is contained in:
parent
d0b4d13b4f
commit
5d4d6485f2
8 changed files with 52 additions and 48 deletions
|
@ -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 };
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
reactos/subsys/system/notepad/notepad.h
Normal file
15
reactos/subsys/system/notepad/notepad.h
Normal 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>
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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
reactos/subsys/system/regedit/regedit.h
Normal file
29
reactos/subsys/system/regedit/regedit.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue