INVOKING-KEYBOARD-PANEL

Simple method to invoke the software keyboard panel when edit box or other controls clicked

(i)BOOL SHInitExtraControls(void);

The above function has to be called before creating the dialog box, in which we need to invoke the software input panel. Call this only once.

(ii)#define WC_SIPPREF L”SIPPREF”

Declare the above definition in resource file

(iii) CONTROL  “”,-1,WC_SIPPREF, NOT WS_VISIBLE,-10,-10,5,5

This has to be added in the resource file at the dialog box resource definition

Eg

IDD_DIALOG1 DIALOG DISCARDABLE  0, 0, 186, 90

STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU

CAPTION “Dialog”

FONT 8, “System”

BEGIN

DEFPUSHBUTTON   “OK”,IDOK,129,7,50,14

PUSHBUTTON      “Cancel”,IDCANCEL,129,24,50,14

END

CONTROL  “”,-1,WC_SIPPREF, NOT WS_VISIBLE,-10,-10,5,5