mirror of
https://github.com/reactos/reactos.git
synced 2024-09-07 03:11:07 +00:00
![Bișoc George](/assets/img/avatar_default.png)
- Replace the existing header files in favour to a pre-compiled header instead. Furthermore, move all the function prototypes in the pre-compiled header. - As per the prototype definitions, LoadDataFromRegistry() and SaveDataToRegistry() mustn't accept any number of parameters. - Rename rsrc.rc to osk.rc (main resource file) as most of user-mode applications name have their main resource as the same application's name anyways. - When querying and saving the data to registry, use only one value, greatly reducing the bloat of variables (as per the Hermes Belusca's request on #1729 PR). - Update the header description reflecting the official ReactOS Coding style guidelines.
78 lines
2.1 KiB
C
78 lines
2.1 KiB
C
/*
|
|
* PROJECT: ReactOS On-Screen Keyboard
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* PURPOSE: Pre-compiled header
|
|
* COPYRIGHT: Denis ROBERT
|
|
* Copyright 2019 Bișoc George (fraizeraust99 at gmail dot com)
|
|
*/
|
|
|
|
#ifndef _OSK_PRECOMP_H
|
|
#define _OSK_PRECOMP_H
|
|
|
|
/* INCLUDES *******************************************************************/
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <windows.h>
|
|
#include <commctrl.h>
|
|
#include <debug.h>
|
|
#include <uxtheme.h>
|
|
#include <vsstyle.h>
|
|
#include "windef.h"
|
|
#include "winbase.h"
|
|
#include "winuser.h"
|
|
#include "winnls.h"
|
|
#include "commctrl.h"
|
|
|
|
#include "osk_res.h"
|
|
|
|
/* TYPES **********************************************************************/
|
|
|
|
typedef struct
|
|
{
|
|
HINSTANCE hInstance;
|
|
HWND hMainWnd;
|
|
HBRUSH hBrushGreenLed;
|
|
UINT_PTR iTimer;
|
|
/* FIXME: To be deleted when ReactOS will support WS_EX_NOACTIVATE */
|
|
HWND hActiveWnd;
|
|
|
|
/* On-Screen Keyboard registry settings */
|
|
BOOL bShowWarning;
|
|
BOOL bIsEnhancedKeyboard;
|
|
BOOL bSoundClick;
|
|
BOOL bAlwaysOnTop;
|
|
INT PosX;
|
|
INT PosY;
|
|
} OSK_GLOBALS;
|
|
|
|
/* PROTOTYPES *****************************************************************/
|
|
|
|
/* main.c */
|
|
int OSK_SetImage(int IdDlgItem, int IdResource);
|
|
int OSK_DlgInitDialog(HWND hDlg);
|
|
int OSK_DlgClose(void);
|
|
int OSK_DlgTimer(void);
|
|
BOOL OSK_DlgCommand(WPARAM wCommand, HWND hWndControl);
|
|
BOOL OSK_ReleaseKey(WORD ScanCode);
|
|
INT_PTR APIENTRY OSK_DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
|
|
LRESULT APIENTRY OSK_ThemeHandler(HWND hDlg, NMCUSTOMDRAW *pNmDraw);
|
|
int WINAPI wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int);
|
|
VOID OSK_RestoreDlgPlacement(HWND hDlg);
|
|
|
|
/* settings.c */
|
|
BOOL LoadDataFromRegistry(VOID);
|
|
BOOL SaveDataToRegistry(VOID);
|
|
INT_PTR CALLBACK OSK_WarningProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam);
|
|
|
|
/* DEFINES ********************************************************************/
|
|
|
|
extern OSK_GLOBALS Globals;
|
|
|
|
#define countof(x) (sizeof(x) / sizeof((x)[0]))
|
|
#define MAX_BUFF 256
|
|
|
|
#endif /* _OSK_PRECOMP_H */
|
|
|
|
/* EOF */
|