2013-01-24 23:00:42 +00:00
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winnls.h>
|
|
|
|
#include <winreg.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
#include <winuser.h>
|
2008-01-09 08:34:47 +00:00
|
|
|
#include <commctrl.h>
|
|
|
|
#include <cpl.h>
|
|
|
|
#include <tchar.h>
|
|
|
|
|
2011-07-28 14:53:55 +00:00
|
|
|
#include "resource.h"
|
|
|
|
|
2007-09-07 18:22:43 +00:00
|
|
|
typedef LONG (CALLBACK *CPLAPPLET_PROC)(VOID);
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2007-10-20 11:08:23 +00:00
|
|
|
int idIcon;
|
|
|
|
int idName;
|
|
|
|
int idDescription;
|
|
|
|
CPLAPPLET_PROC AppletProc;
|
2007-09-07 18:22:43 +00:00
|
|
|
} APPLET, *PAPPLET;
|
|
|
|
|
|
|
|
extern HINSTANCE hApplet;
|
2008-04-20 07:34:59 +00:00
|
|
|
extern HANDLE hProcessHeap;
|
|
|
|
|
|
|
|
// Character Count of a layout ID like "00000409"
|
|
|
|
#define CCH_LAYOUT_ID 8
|
2007-09-07 18:22:43 +00:00
|
|
|
|
2008-04-24 17:57:48 +00:00
|
|
|
// Maximum Character Count of a ULONG in decimal
|
|
|
|
#define CCH_ULONG_DEC 10
|
|
|
|
|
2007-09-07 18:22:43 +00:00
|
|
|
/* input.c */
|
|
|
|
VOID
|
|
|
|
InitPropSheetPage(PROPSHEETPAGE *psp, WORD idDlg, DLGPROC DlgProc);
|
|
|
|
|
|
|
|
/* settings.c */
|
|
|
|
INT_PTR CALLBACK
|
2012-12-28 19:31:17 +00:00
|
|
|
SettingsPageProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam);
|
2008-03-11 15:52:27 +00:00
|
|
|
BOOL
|
2008-05-02 06:41:59 +00:00
|
|
|
GetLayoutName(LPCTSTR szLCID, LPTSTR szName);
|
2008-04-20 07:34:59 +00:00
|
|
|
VOID
|
|
|
|
UpdateLayoutsList(VOID);
|
2008-05-14 15:51:53 +00:00
|
|
|
BOOL
|
|
|
|
IsLayoutExists(LPTSTR szLayoutID, LPTSTR szLangID);
|
2007-09-07 18:22:43 +00:00
|
|
|
|
2012-12-28 19:31:17 +00:00
|
|
|
/* advsettings.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
AdvancedSettingsPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
2007-09-07 18:22:43 +00:00
|
|
|
/* keysettings.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
KeySettingsDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
|
2008-05-18 09:06:48 +00:00
|
|
|
VOID
|
2011-03-13 20:56:27 +00:00
|
|
|
UpdateKeySettingsList(VOID);
|
2007-09-07 18:22:43 +00:00
|
|
|
|
|
|
|
/* add.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
AddDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
|
2008-03-11 15:52:27 +00:00
|
|
|
VOID
|
2008-05-13 20:23:23 +00:00
|
|
|
CreateKeyboardLayoutList(HWND hItemsList);
|
|
|
|
INT
|
|
|
|
GetLayoutCount(LPTSTR szLang);
|
2007-09-07 18:22:43 +00:00
|
|
|
|
|
|
|
/* changekeyseq.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
ChangeKeySeqDlgProc(HWND hDlg,UINT message,WPARAM wParam,LPARAM lParam);
|
2008-05-15 12:38:12 +00:00
|
|
|
BOOL
|
|
|
|
GetHotkeys(LPTSTR szHotkey, LPTSTR szLangHotkey, LPTSTR szLayoutHotkey);
|
2007-09-07 18:22:43 +00:00
|
|
|
|
|
|
|
void ShowLastWin32Error(HWND hWndOwner);
|
|
|
|
|
|
|
|
/* EOF */
|