Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sub-classing CComboBox Pin
Jack Puppy4-Aug-05 10:51
Jack Puppy4-Aug-05 10:51 
GeneralRe: sub-classing CComboBox Pin
Stober4-Aug-05 11:23
Stober4-Aug-05 11:23 
Generalunlock user accounts Pin
sebastianos4-Aug-05 7:36
sebastianos4-Aug-05 7:36 
GeneralRe: unlock user accounts Pin
Blake Miller4-Aug-05 7:56
Blake Miller4-Aug-05 7:56 
GeneralRe: unlock user accounts Pin
IanG (Surreal Studio)4-Aug-05 12:23
IanG (Surreal Studio)4-Aug-05 12:23 
GeneralRe: unlock user accounts Pin
sebastianos4-Aug-05 14:44
sebastianos4-Aug-05 14:44 
GeneralRe: unlock user accounts Pin
sunit54-Aug-05 18:31
sunit54-Aug-05 18:31 
GeneralMultiple Keyboard events Pin
Jumpin' Jeff4-Aug-05 7:27
Jumpin' Jeff4-Aug-05 7:27 
As you know, the windows standard for select all is Control-A.
There is a program I am workin at creating a 3rd party app for that uses Ctrl-A for another purpose. I am wanting to, within my app, remap ctrl-a back to the standard, and assign a new sequence to the old task it once did.

I am creating a DLL hook in my app and can capture single keyboard events, but I am having trouble determining how to capture and remap ctrl-A for this application.

In it's simplest form, the following is what I am trying to achieve. If (Control & A), display messagebox!

LRESULT __declspec(dllexport)__stdcall  CALLBACK KeyboardProc(<br />
                            int nCode, <br />
                           WPARAM wParam, <br />
                            LPARAM lParam)<br />
{<br />
        if (wParam==0x041 & VK_CONTROL) <br />
  		MessageBox(0, Success!, "Message", MB_OK);<br />
	<br />
	LRESULT RetVal = CallNextHookEx( hkb, nCode, wParam, lParam );	<br />
	return  RetVal;<br />
}


Thanks for any assistance!

Jeff
GeneralRe: Multiple Keyboard events Pin
Blake Miller4-Aug-05 7:56
Blake Miller4-Aug-05 7:56 
GeneralRe: Multiple Keyboard events Pin
Jumpin' Jeff4-Aug-05 8:21
Jumpin' Jeff4-Aug-05 8:21 
GeneralRe: Multiple Keyboard events Pin
Blake Miller4-Aug-05 8:28
Blake Miller4-Aug-05 8:28 
GeneralRe: Multiple Keyboard events Pin
Jumpin' Jeff4-Aug-05 14:22
Jumpin' Jeff4-Aug-05 14:22 
GeneralRe: Multiple Keyboard events Pin
Jumpin' Jeff4-Aug-05 15:54
Jumpin' Jeff4-Aug-05 15:54 
GeneralRe: Multiple Keyboard events Pin
Jumpin' Jeff5-Aug-05 2:37
Jumpin' Jeff5-Aug-05 2:37 
GeneralRe: Multiple Keyboard events Pin
Blake Miller5-Aug-05 4:05
Blake Miller5-Aug-05 4:05 
GeneralUsing NtCreateFile Pin
Chintoo7234-Aug-05 7:25
Chintoo7234-Aug-05 7:25 
GeneralRe: Using NtCreateFile Pin
Toby Opferman4-Aug-05 11:54
Toby Opferman4-Aug-05 11:54 
Generalrunning with less cpu usage Pin
Chintoo7234-Aug-05 7:21
Chintoo7234-Aug-05 7:21 
GeneralRe: running with less cpu usage Pin
Blake Miller4-Aug-05 7:49
Blake Miller4-Aug-05 7:49 
GeneralGetThemeColor of disabled BP_PUSHBUTTON Pin
RazorBridge4-Aug-05 7:10
RazorBridge4-Aug-05 7:10 
GeneralRe: GetThemeColor of disabled BP_PUSHBUTTON Pin
Jose Lamas Rios4-Aug-05 18:12
Jose Lamas Rios4-Aug-05 18:12 
GeneralRe: GetThemeColor of disabled BP_PUSHBUTTON Pin
RazorBridge4-Aug-05 21:49
RazorBridge4-Aug-05 21:49 
GeneralDisallowing Ctrl-Alt-Del Pin
#realJSOP4-Aug-05 6:26
mve#realJSOP4-Aug-05 6:26 
GeneralRe: Disallowing Ctrl-Alt-Del Pin
Graham Bradshaw4-Aug-05 6:53
Graham Bradshaw4-Aug-05 6:53 
GeneralRe: Disallowing Ctrl-Alt-Del Pin
#realJSOP4-Aug-05 8:26
mve#realJSOP4-Aug-05 8:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.