ReactOS  0.4.15-dev-345-g5d88487
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 BiČ™oc George (fraizeraust99 at gmail dot com)
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);
72 
73 /* settings.c */
74 LONG LoadDataFromRegistry(IN LPCWSTR lpValueDataName,
75  OUT PDWORD pdwValueData);
76 
77 LONG SaveDataToRegistry(IN LPCWSTR lpValueDataName,
78  IN DWORD dwValueData);
79 
82 
83 /* DEFINES ********************************************************************/
84 
85 extern OSK_GLOBALS Globals;
86 
87 #define countof(x) (sizeof(x) / sizeof((x)[0]))
88 #define MAX_BUFF 256
89 
90 #endif /* _OSK_PRECOMP_H */
91 
92 /* EOF */
struct @1608 Msg[]
LRESULT APIENTRY OSK_ThemeHandler(HWND hDlg, NMCUSTOMDRAW *pNmDraw)
Definition: main.c:496
#define IN
Definition: typedefs.h:39
BOOL bSoundClick
Definition: precomp.h:43
int OSK_DlgTimer(void)
Definition: main.c:320
ULONG ScanCode
Definition: api.c:39
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
VOID OSK_RestoreDlgPlacement(HWND hDlg)
Definition: main.c:258
BOOL bAlwaysOnTop
Definition: precomp.h:44
#define CALLBACK
Definition: compat.h:27
UINT_PTR WPARAM
Definition: windef.h:207
int32_t INT_PTR
Definition: typedefs.h:63
BOOL OSK_ReleaseKey(WORD ScanCode)
Definition: main.c:455
BOOL OSK_DlgCommand(WPARAM wCommand, HWND hWndControl)
Definition: main.c:346
int32_t INT
Definition: typedefs.h:57
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:298
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
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:270
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:572
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
HBRUSH hBrushGreenLed
Definition: precomp.h:35
int WINAPI wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)
Definition: charmap.c:592
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:130
#define APIENTRY
Definition: api.h:79
HINSTANCE hInstance
Definition: precomp.h:33
INT PosY
Definition: precomp.h:46