ReactOS 0.4.15-dev-7842-g558ab78
precomp.h
Go to the documentation of this file.
1#ifndef __WORDPAD_PRECOMP_H
2#define __WORDPAD_PRECOMP_H
3
4//#define WIN32_LEAN_AND_MEAN
5#include <windows.h>
6#include <windowsx.h> /* GET_X/Y_LPARAM */
7#include <stdio.h>
8#include <tchar.h>
9#include <richedit.h>
10#include <commctrl.h>
11#include "resource.h"
12
13/* FIXME - add to headers !!! */
14#ifndef SB_SIMPLEID
15#define SB_SIMPLEID 0xFF
16#endif
17
18#define MAX_KEY_LENGTH 256
19
20#define DOC_TYPE_RICH_TEXT 0
21#define DOC_TYPE_UNICODE_TEXT 1
22#define DOC_TYPE_TEXT 2
23
24#ifdef _MSC_VER
25#pragma warning(disable : 4100)
26#endif
27
28/* generic definitions and forward declarations */
29struct _MAIN_WND_INFO;
30struct _EDIT_WND_INFO;
31
32typedef enum _MDI_EDITOR_TYPE {
36
37
38/* wordpad.c */
39extern HINSTANCE hInstance;
40extern HANDLE ProcessHeap;
41
42
43/* editwnd.c */
44typedef struct _OPEN_EDIT_INFO
45{
47 union
48 {
49 UINT DocType; /* new */
51 };
53
55
56typedef struct _EDIT_WND_INFO
57{
58 MDI_EDITOR_TYPE MdiEditorType; /* Must be first member! */
59
66
67 POPEN_EDIT_INFO OpenInfo; /* Only valid during initialization */
68
71
73
79 BOOL Setup);
80
81
82/* mainwnd.c */
83typedef struct _MENU_HINT
84{
85 WORD CmdId;
88
89typedef struct _MAIN_WND_INFO
90{
94 int nCmdShow;
95
96 /* Editors */
100
101 /* status flags */
104
108 int nCmdShow);
110 LPMSG lpMsg);
112 HWND hDeactivate,
113 HWND hActivate);
115 PVOID *Info);
116
117
118
119/* misc.c */
122 IN UINT uID);
123
125 IN UINT uID,
126 OUT LPTSTR *lpTarget,
127 ...);
128
130 IN INT PartId,
132 IN UINT uID,
133 ...);
134
136 IN INT PartId,
138 IN UINT uID);
139
141 IN HWND hDlg,
142 IN UINT Res);
143
145
146
147/* opensave.c */
151
152/* about.c */
155
158
159
160#endif /* __WORDPAD_PRECOMP_H */
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE ACPI_HANDLE ACPI_HANDLE *OutHandle ACPI_HANDLE *OutHandle void *Context void *Context ACPI_EVENT_HANDLER Handler UINT32 UINT32 ACPI_GPE_HANDLER void *Context UINT32 ACPI_NOTIFY_HANDLER void *Context ACPI_ADR_SPACE_TYPE ACPI_ADR_SPACE_HANDLER ACPI_ADR_SPACE_SETUP Setup
Definition: acpixf.h:834
HINSTANCE hInstance
Definition: charmap.c:19
HINSTANCE hInst
Definition: dxdiag.c:13
INT AllocAndLoadString(OUT LPTSTR *lpTarget, IN HINSTANCE hInst, IN UINT uID)
Definition: misc.c:59
DWORD LoadAndFormatString(IN HINSTANCE hInstance, IN UINT uID, OUT LPTSTR *lpTarget,...)
Definition: misc.c:85
VOID UninitMainWindowImpl(VOID)
Definition: mainwnd.c:990
INT_PTR CALLBACK AboutDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Definition: about.c:4
INT GetTextFromEdit(OUT LPWSTR lpString, IN HWND hDlg, IN UINT Res)
Definition: misc.c:174
struct _MENU_HINT * PMENU_HINT
struct _MAIN_WND_INFO MAIN_WND_INFO
HANDLE ProcessHeap
Definition: servman.c:15
struct _MAIN_WND_INFO * PMAIN_WND_INFO
VOID GetError(VOID)
Definition: misc.c:192
struct _MENU_HINT MENU_HINT
BOOL InitMainWindowImpl(VOID)
Definition: mainwnd.c:964
BOOL StatusBarLoadString(IN HWND hStatusBar, IN INT PartId, IN HINSTANCE hInstance, IN UINT uID)
Definition: misc.c:150
BOOL StatusBarLoadAndFormatString(IN HWND hStatusBar, IN INT PartId, IN HINSTANCE hInstance, IN UINT uID,...)
Definition: misc.c:108
HWND hStatusBar
Definition: main.c:36
HWND CreateMainWindow()
Definition: biditext.c:330
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
BOOL DoSaveFile(IN PWSTR pszFileName)
BOOL DoOpenFile(OUT PWSTR pszFileName)
Definition: opensave.c:36
VOID FileInitialize(HWND hwnd)
Definition: opensave.c:8
enum _MDI_EDITOR_TYPE MDI_EDITOR_TYPE
VOID SetEditorEnvironment(PEDIT_WND_INFO Info, BOOL Setup)
Definition: editwnd.c:117
_MDI_EDITOR_TYPE
Definition: precomp.h:32
@ metUnknown
Definition: precomp.h:33
@ metImageEditor
Definition: precomp.h:34
VOID MainWndSwitchEditorContext(PMAIN_WND_INFO Info, HWND hDeactivate, HWND hActivate)
Definition: mainwnd.c:522
struct _OPEN_EDIT_INFO OPEN_EDIT_INFO
struct _EDIT_WND_INFO * PEDIT_WND_INFO
BOOL CreateEditWindow(struct _MAIN_WND_INFO *MainWnd, POPEN_EDIT_INFO OpenInfo)
Definition: editwnd.c:132
INT_PTR CALLBACK NewDocSelDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Definition: dialogs.c:4
VOID UninitEditWindowImpl(VOID)
Definition: editwnd.c:198
BOOL MainWndTranslateMDISysAccel(HWND hwnd, LPMSG lpMsg)
Definition: mainwnd.c:616
BOOL InitEditWindowImpl(VOID)
Definition: editwnd.c:173
MDI_EDITOR_TYPE MainWndGetCurrentEditor(PMAIN_WND_INFO MainWnd, PVOID *Info)
Definition: mainwnd.c:502
struct _EDIT_WND_INFO EDIT_WND_INFO
struct _OPEN_EDIT_INFO * POPEN_EDIT_INFO
enum _MDI_EDITOR_TYPE * PMDI_EDITOR_TYPE
unsigned int UINT
Definition: ndis.h:50
long LONG
Definition: pedump.c:60
unsigned short USHORT
Definition: pedump.c:61
#define err(...)
USHORT Zoom
Definition: precomp.h:65
LONG Width
Definition: precomp.h:69
LONG Height
Definition: precomp.h:70
POINT ScrollPos
Definition: precomp.h:64
HWND hSelf
Definition: precomp.h:60
MDI_EDITOR_TYPE MdiEditorType
Definition: precomp.h:58
HWND hEdit
Definition: precomp.h:61
POPEN_EDIT_INFO OpenInfo
Definition: precomp.h:67
struct _MAIN_WND_INFO * MainWnd
Definition: precomp.h:62
struct _EDIT_WND_INFO * Next
Definition: precomp.h:63
UINT InMenuLoop
Definition: precomp.h:102
HWND hStatus
Definition: precomp.h:53
HWND hMdiClient
Definition: precomp.h:43
PEDIT_WND_INFO ImageEditors
Definition: precomp.h:97
UINT ImagesCreated
Definition: precomp.h:98
PVOID ActiveEditor
Definition: precomp.h:99
HWND hSelf
Definition: precomp.h:91
int nCmdShow
Definition: precomp.h:57
UINT HintId
Definition: precomp.h:90
WORD CmdId
Definition: precomp.h:89
UINT DocType
Definition: precomp.h:49
BOOL CreateNew
Definition: precomp.h:46
LPTSTR lpDocumentPath
Definition: precomp.h:50
LPTSTR lpDocumentName
Definition: precomp.h:52
Definition: tftpd.h:60
int32_t INT_PTR
Definition: typedefs.h:64
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Definition: wdfchildlist.h:690
_In_ LPCSTR lpFileName
Definition: winbase.h:3071
_In_ LPCSTR lpName
Definition: winbase.h:2789
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
CHAR * LPTSTR
Definition: xmlstorage.h:192