Hoe verschillende toetsenborden te activeren
U kunt verschillende typen schermtoetsenborden opgeven die moeten worden weergegeven. Gebruik een van de volgende methoden.
Methode 1
Wijzig vanuit uw software de registerparameter KeyboardName in HKEY_CURRENT_USER\Software\ComfortSoftware\CKeys.
Als het schermtoetsenbord zichtbaar is, verstuur dan het Windows-bericht PostMessage(FindWindow('TFirstForm', 'CKeysFirstForm'), WM_CSKEYBOARD, 1, 0), en onze applicatie zal het schermtoetsenbord opnieuw laden.
Methode 2
Download dit bestand: https://www.comfortsoftware.com/download/SetNameKB.exe
Opdrachtregelindeling: SetNameKB.exe KeyboardName
Bijvoorbeeld: SetNameKB.exe Mini
Methode 3
Gebruik deze code:
char KeyboardName[80];
COPYDATASTRUCT MyCDS;
KeyboardName = "Standard";
// Fill the COPYDATA structure
MyCDS.dwData = 1; // function identifier
MyCDS.cbData = sizeof(KeyboardName); // size of data
MyCDS.lpData = &KeyboardName; // data structure
// Call function, passing data in &MyCDS
HWND hwDispatch = FindWindow( "TFirstForm", "CKeysFirstForm" );
if( hwDispatch != NULL )
SendMessage( hwDispatch,
WM_COPYDATA,
(WPARAM)(HWND) NULL,
(LPARAM) (LPVOID) &MyCDS );

