Click here to Skip to main content
15,915,328 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRichEditCtrl - pasted text not visible initially!? Pin
Steve Roach5-Jan-00 3:41
Steve Roach5-Jan-00 3:41 
AnswerRE: RichEditCtrl - pasted text not visible initially!? Pin
Steve Roach5-Jan-00 4:29
Steve Roach5-Jan-00 4:29 
GeneralRE: RE: RichEditCtrl - pasted text not visible initially!? Pin
Steve Roach6-Jan-00 2:56
Steve Roach6-Jan-00 2:56 
GeneralRE: RE: RE: RichEditCtrl - pasted text not visible initially!? Pin
Dmitriy6-Jan-00 3:14
Dmitriy6-Jan-00 3:14 
GeneralAdmin Lockouts Pin
Member 11564-Jan-00 14:20
Member 11564-Jan-00 14:20 
GeneralKeyboard hook Pin
Phil McGahan4-Jan-00 8:47
Phil McGahan4-Jan-00 8:47 
GeneralRE: Keyboard hook Pin
Member 10545-Jan-00 1:58
Member 10545-Jan-00 1:58 
GeneralRE: RE: Keyboard hook Pin
Anonymous5-Jan-00 7:49
suss Anonymous5-Jan-00 7:49 
Here is the
ghHook = SetWindowsHookEx(WH_KEYBOARD, &KeyboardProc, ghInstance, NULL);

Since I reported the problem, I believe I have found an answer.

I am using
SendMessage(ghWnd, gnKeyMsg, wParam, lParam);
to get information out of keyhook.
This dll attaches itself to every process in the system. One dll but many memory spaces.
The problem is only the exe that launches the dll sets the value of hgWnd, in all other memory spaces it is NULL.
I think what I need to do is set this value in the registery and read it into each memory space.

What do you think.

Thank you.



==================
The original message was:

Are you using SetWindowsHookEx? If so can I see a snippet of the code you are using?

==================
The original message was:

Does anyone have experience with keyboard hooks?

I have created a keyboard hook and it works just fine provided the exe driving the dll displays a dialog box with an edit control and the edit control has focus.

However, if another app has focus, say Notepad.exe, then the keyboard hook never receives the messages.

What I think I need is some way to force the keyboard hook to the top of the message chain.

I would like to start a dialog with anyone that has worked with keyboard hooks before.

Thank you.

PMCGAHAN@UCSWORKS.COM


GeneralRE: Keyboard hook Pin
Andreas Jäger14-Feb-00 8:20
suss Andreas Jäger14-Feb-00 8:20 
GeneralReduce color depth Pin
Alex4-Jan-00 7:15
Alex4-Jan-00 7:15 
GeneralModeless Dialog Ending Help needed Pin
Buck3-Jan-00 18:10
Buck3-Jan-00 18:10 
GeneralRE: Modeless Dialog Ending Help needed Pin
Member 10544-Jan-00 2:09
Member 10544-Jan-00 2:09 
GeneralRE: Modeless Dialog Ending Help needed Pin
Michael Owen4-Jan-00 5:05
Michael Owen4-Jan-00 5:05 
GeneralResize ActiveX control hosted in CWnd Pin
Peter Hauptmann3-Jan-00 8:24
sussPeter Hauptmann3-Jan-00 8:24 
GeneralSelect more than one item in a listbox Pin
Anonymous3-Jan-00 7:07
suss Anonymous3-Jan-00 7:07 
GeneralRE: Select more than one item in a listbox Pin
Andrei Zenkovitch3-Jan-00 8:03
Andrei Zenkovitch3-Jan-00 8:03 
GeneralRE: RE: Select more than one item in a listbox Pin
Anonymous4-Jan-00 5:48
suss Anonymous4-Jan-00 5:48 
GeneralRE: RE: RE: Select more than one item in a listbox Pin
Anonymous4-Jan-00 5:51
suss Anonymous4-Jan-00 5:51 
QuestionHow do you use a Rich Edit Control in a dialog? Pin
Steve Roach14-Dec-99 3:35
Steve Roach14-Dec-99 3:35 
AnswerRE: How do you use a Rich Edit Control in a dialog? Pin
Jesse Ezell14-Dec-99 14:43
Jesse Ezell14-Dec-99 14:43 
GeneralExplorer.exe Pin
compwiz12-Dec-99 13:39
compwiz12-Dec-99 13:39 
GeneralRE: Explorer.exe Pin
Mike Dunn14-Dec-99 15:21
Mike Dunn14-Dec-99 15:21 
GeneralRE: RE: Explorer.exe Pin
Mike Dunn14-Dec-99 15:34
Mike Dunn14-Dec-99 15:34 
GeneralRestarting the shell Pin
Mike Dunn14-Dec-99 15:38
Mike Dunn14-Dec-99 15:38 
GeneralMultiple File Formats Loading and Saving Pin
Jesse Ezell11-Dec-99 19:10
Jesse Ezell11-Dec-99 19:10 

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.