Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SHGetSpecialFolder problem with Win98 Pin
Mazdak9-Sep-03 9:30
Mazdak9-Sep-03 9:30 
GeneralRe: SHGetSpecialFolder problem with Win98 Pin
Michael Dunn9-Sep-03 9:31
sitebuilderMichael Dunn9-Sep-03 9:31 
GeneralRe: SHGetSpecialFolder problem with Win98 Pin
LukeV9-Sep-03 9:55
LukeV9-Sep-03 9:55 
GeneralRe: SHGetSpecialFolder problem with Win98 Pin
Michael Dunn9-Sep-03 10:08
sitebuilderMichael Dunn9-Sep-03 10:08 
GeneralRe: SHGetSpecialFolder problem with Win98 Pin
LukeV9-Sep-03 10:18
LukeV9-Sep-03 10:18 
GeneralRe: SHGetSpecialFolder problem with Win98 Pin
Abin9-Sep-03 14:02
Abin9-Sep-03 14:02 
GeneralRe: SHGetSpecialFolder problem with Win98 Pin
David Crow9-Sep-03 9:57
David Crow9-Sep-03 9:57 
GeneralWindows hooks and TranslateMessage function Pin
mannelig9-Sep-03 8:32
mannelig9-Sep-03 8:32 
When I've tried to catch keyboard messages with SetWindowsHookEx(WH_KEYBOARD, KbHookingProc, hinstDll, 0), I've noticed, that only WM_KEYDOWNs are hooked.

It means that, as I make an attempt to send the message to my primary thread of execution like this:

LRESULT CALLBACK KbHookingProc(int code, WPARAM wParam, LPARAM lParam)<br />
{<br />
	if (code < 0) goto ret;<br />
<br />
        UINT uMsg = (lParam & KF_UP) ? WM_KEYUP : WM_KEYDOWN;<br />
<br />
	PostThreadMessage(ThreadId, uMsg, wParam, lParam);<br />
<br />
ret:<br />
<br />
	return CallNextHookEx(hhook, code, wParam, lParam);<br />
};


I recieve only WM_KEYDOWN messages.

So, when my primary thread tries to translate such re-sent messages, TranslateMessage doesn't work (I suppose, it depends on WM_KEYUP in some way, but I'm not sure).
GeneralRe: Windows hooks and TranslateMessage function Pin
Joseph Marzbani15-Sep-08 3:22
Joseph Marzbani15-Sep-08 3:22 
GeneralVC.Net Debugging Pin
Dave Loeser9-Sep-03 7:58
Dave Loeser9-Sep-03 7:58 
GeneralMS Access and datetime picker Pin
Steve Messer9-Sep-03 7:57
Steve Messer9-Sep-03 7:57 
GeneralRe: MS Access and datetime picker Pin
Steve Messer9-Sep-03 22:11
Steve Messer9-Sep-03 22:11 
GeneralWeird Problem! Please Help Pin
Binayak9-Sep-03 7:47
Binayak9-Sep-03 7:47 
GeneralRe: Weird Problem! Please Help Pin
igor19609-Sep-03 9:23
igor19609-Sep-03 9:23 
GeneralRe: Weird Problem! Please Help Pin
Binayak9-Sep-03 10:15
Binayak9-Sep-03 10:15 
GeneralRe: Weird Problem! Please Help Pin
igor19609-Sep-03 11:52
igor19609-Sep-03 11:52 
Generalunable to include Excel Pin
act_x9-Sep-03 7:12
act_x9-Sep-03 7:12 
GeneralRe: unable to include Excel Pin
David Crow9-Sep-03 7:26
David Crow9-Sep-03 7:26 
GeneralRe: unable to include Excel Pin
act_x9-Sep-03 8:14
act_x9-Sep-03 8:14 
GeneralRe: unable to include Excel Pin
David Crow9-Sep-03 8:16
David Crow9-Sep-03 8:16 
GeneralRe: unable to include Excel Pin
act_x9-Sep-03 8:17
act_x9-Sep-03 8:17 
Generalchar * to VARIANT Pin
act_x9-Sep-03 6:29
act_x9-Sep-03 6:29 
GeneralRe: char * to VARIANT Pin
Miszou9-Sep-03 6:41
Miszou9-Sep-03 6:41 
QuestionHow to take the address of a smart pointer? Pin
Miszou9-Sep-03 6:16
Miszou9-Sep-03 6:16 
AnswerRe: How to take the address of a smart pointer? Pin
antlers9-Sep-03 6:58
antlers9-Sep-03 6:58 

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.