ReactOS  0.4.15-dev-3287-gfec35dc
precomp.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS On-Screen Keyboard
3  * LICENSE: GPL - See COPYING in the top level directory
4  * PURPOSE: Pre-compiled header
5  * COPYRIGHT: Denis ROBERT
6  * Copyright 2019 George BiČ™oc (george.bisoc@reactos.org)
7  */
8 
9 #ifndef _OSK_PRECOMP_H
10 #define _OSK_PRECOMP_H
11 
12 /* INCLUDES *******************************************************************/
13 
14 #include <stdio.h>
15 
16 #include <windows.h>
17 #include <commctrl.h>
18 #include <debug.h>
19 #include <uxtheme.h>
20 #include <vsstyle.h>
21 #include "windef.h"
22 #include "winbase.h"
23 #include "winuser.h"
24 #include "winnls.h"
25 #include "commctrl.h"
26 
27 #include "osk_res.h"
28 
29 /* TYPES **********************************************************************/
30 
31 typedef struct
32 {
37  /* FIXME: To be deleted when ReactOS will support WS_EX_NOACTIVATE */
39 
40  /* On-Screen Keyboard registry settings */
47 } OSK_GLOBALS;
48 
49 typedef struct
50 {
56 
57 /* PROTOTYPES *****************************************************************/
58 
59 /* main.c */
60 int OSK_SetImage(int IdDlgItem, int IdResource);
61 int OSK_DlgInitDialog(HWND hDlg);
62 int OSK_DlgClose(void);
63 int OSK_DlgTimer(void);
64 BOOL OSK_DlgCommand(WPARAM wCommand, HWND hWndControl);
73 
74 /* settings.c */
75 LONG LoadDataFromRegistry(IN LPCWSTR lpValueDataName,
76  OUT PDWORD pdwValueData);
77 
78 LONG SaveDataToRegistry(IN LPCWSTR lpValueDataName,
79  IN DWORD dwValueData);
80 
83 
84 /* DEFINES ********************************************************************/
85 
86 extern OSK_GLOBALS Globals;
87 
88 #define countof(x) (sizeof(x) / sizeof((x)[0]))
89 #define MAX_BUFF 256
90 
91 #endif /* _OSK_PRECOMP_H */
92 
93 /* EOF */
LRESULT APIENTRY OSK_ThemeHandler(HWND hDlg, NMCUSTOMDRAW *pNmDraw)
Definition: main.c:510
#define IN
Definition: typedefs.h:39
BOOL bSoundClick
Definition: precomp.h:43
int OSK_DlgTimer(void)
Definition: main.c:334
ULONG ScanCode
Definition: api.c:39
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
VOID OSK_RestoreDlgPlacement(HWND hDlg)
Definition: main.c:272
BOOL bAlwaysOnTop
Definition: precomp.h:44
#define CALLBACK
Definition: compat.h:35
DWORD WINAPI OSK_WarningDlgThread(LPVOID lpParameter)
Definition: main.c:103
UINT_PTR WPARAM
Definition: windef.h:207
int32_t INT_PTR
Definition: typedefs.h:64
BOOL OSK_ReleaseKey(WORD ScanCode)
Definition: main.c:469
BOOL OSK_DlgCommand(WPARAM wCommand, HWND hWndControl)
Definition: main.c:360
int32_t INT
Definition: typedefs.h:58
WPARAM wParam
Definition: combotst.c:138
HWND hActiveWnd
Definition: precomp.h:38
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
void SaveSettings(void)
Definition: settings.c:115
void LoadSettings(void)
Definition: settings.c:53
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
LONG SaveDataToRegistry(IN LPCWSTR lpValueDataName, IN DWORD dwValueData)
Definition: settings.c:70
LONG LoadDataFromRegistry(IN LPCWSTR lpValueDataName, OUT PDWORD pdwValueData)
Definition: settings.c:14
LONG_PTR LPARAM
Definition: windef.h:208
BOOL bShowWarning
Definition: precomp.h:41
VOID OSK_RefreshLEDKeys(VOID)
Definition: main.c:312
UINT_PTR iTimer
Definition: precomp.h:36
#define WINAPI
Definition: msvc.h:6
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
LPVOID lpParameter
Definition: kernel32.h:241
BOOL bIsEnhancedKeyboard
Definition: precomp.h:42
INT_PTR CALLBACK OSK_WarningProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
Definition: main.c:62
int OSK_DlgClose(void)
Definition: main.c:284
int OSK_SetImage(int IdDlgItem, int IdResource)
Definition: main.c:32
INT_PTR APIENTRY OSK_DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: main.c:586
unsigned int UINT
Definition: ndis.h:50
HWND hMainWnd
Definition: precomp.h:34
INT PosX
Definition: precomp.h:45
DWORD * PDWORD
Definition: pedump.c:68
#define msg(x)
Definition: auth_time.c:54
#define OUT
Definition: typedefs.h:40
struct @1587 Msg[]
HBRUSH hBrushGreenLed
Definition: precomp.h:35
int WINAPI wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)
Definition: charmap.c:670
WCHAR * LPWSTR
Definition: xmlstorage.h:184
LONG_PTR LRESULT
Definition: windef.h:209
LPARAM lParam
Definition: combotst.c:139
int OSK_DlgInitDialog(HWND hDlg)
Definition: main.c:144
#define APIENTRY
Definition: api.h:79
HINSTANCE hInstance
Definition: precomp.h:33
INT PosY
Definition: precomp.h:46