Re: disable hardware buttons
From: Ayman (ayman.sydhom_at_teklogix.com)
Date: 05/18/04
- Next message: Brian Burgess: "Re: CreateObjectWithEvents"
- Previous message: Chris Tacke, eMVP: "Re: CreateObjectWithEvents"
- In reply to: Matteo Gabella: "disable hardware buttons"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 18 May 2004 13:42:08 -0400
Hi,
There is API that can be used, here is it is:
This function enables or disables the keyboard.
BOOL EnableHardwareKeyboard(
BOOL bEnable);
Parameters
bEnable
[in] Boolean value that specifies whether to enable or disable the
keyboard. Set it to TRUE to enable the keyboard or FALSE to disable
it.
Return Values
This function always returns TRUE.
Remarks
The EnableHardwareKeyboard function is useful for applications in
which a user can write on the touch screen. When the keyboard is
disabled, a user can rest a hand on it without causing spurious
keyboard input. Use the disable mode carefully. If an application
hangs while the keyboard is disabled, the keyboard is not available to
other applications.
When EnableHardwareKeyboard changes the enabled state of the keyboard,
it causes menus, tabs, buttons and static controls to repaint
themselves, so they can change the way they display keyboard
accelerators or other relevant information.
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Winuser.h.
Link Library: Kbdui.lib.
See Also
GetKeyboardStatus
A. Sydhom
On 17 May 2004 01:21:56 -0700, gabu2000@tin.it (Matteo Gabella) wrote:
>hi all
>is there any way (via API?) to disable hardware buttons?
>my pocketpc has a full keyboard and i want to disable in a certain
>case... i want the user to use the barcode reader only ...
>thanks
>matteo gabella
>
>(i'm using eMbedded VB)
- Next message: Brian Burgess: "Re: CreateObjectWithEvents"
- Previous message: Chris Tacke, eMVP: "Re: CreateObjectWithEvents"
- In reply to: Matteo Gabella: "disable hardware buttons"
- Messages sorted by: [ date ] [ thread ]