mirror of
https://github.com/reactos/reactos.git
synced 2024-11-03 05:18:55 +00:00
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 */
|