I´m developing an application for a system that will be runnig in a PC, this application will be used for non-qualified users.I want to disable some keys and key combinations in it. How can i do it?.
for example: disable the windows key or the alt-F4 combination
the function PreTranslateMessage is used by the class that received the message to translate the message before they are dispatched. This gives the opportunity to the class to trap the message as, when the function returns TRUE, the message is not dispatched.
Here is a sample code for a dialog box:
BOOL C....Dlg:reTranslateMessage(MSG* pMsg)
{
// Select Only WM_KEYDOWN Message
if ( pMsg->message == WM_KEYDOWN)
{
// Select ESC and Enter Key
Hi guis, as I see this is about disable it not in an aplication but in the keyboard.
I think you should implement some interfaces like IShell* ant register them to run at startup. There exists posibility to hahdle system events. John Fill
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.