Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: TerminateProcess() and windows messages. Pin
David Crow29-Oct-09 4:29
David Crow29-Oct-09 4:29 
AnswerRe: TerminateProcess() and windows messages. Pin
CPallini29-Oct-09 7:49
mveCPallini29-Oct-09 7:49 
AnswerRe: TerminateProcess() and windows messages. Pin
«_Superman_»29-Oct-09 7:59
professional«_Superman_»29-Oct-09 7:59 
QuestionGet window handle on which mouse button was clicked Pin
staticv29-Oct-09 3:53
staticv29-Oct-09 3:53 
QuestionRe: Get window handle on which mouse button was clicked Pin
David Crow29-Oct-09 4:25
David Crow29-Oct-09 4:25 
AnswerRe: Get window handle on which mouse button was clicked Pin
staticv29-Oct-09 5:12
staticv29-Oct-09 5:12 
AnswerRe: Get window handle on which mouse button was clicked Pin
David Crow29-Oct-09 5:19
David Crow29-Oct-09 5:19 
GeneralRe: Get window handle on which mouse button was clicked Pin
staticv29-Oct-09 5:34
staticv29-Oct-09 5:34 
Hmmm. But I ran into another problem. Since I only needed Desktop's ListView (SysListView32) mouse events. I used WH_MOUSE because it can be thread specific whereas WH_MOUSE_LL can be global hook only that's why.

Now when I did this change, I'm not getting any events when I click on the desktop icons or anywhere in the desktop.

hookMouse = SetWindowsHookEx(WH_MOUSE, (HOOKPROC)InternalMouseHookCallback, g_appInstance, threadID);

Here g_appInstance is the address of the DLL. threadID is the ID of the thread in which there is the SysListView32 (which is the desktop). InternalMouseHookCallback is a callback of .NET function.

But now its not working. Please help me out. I'm using the Global System Hooks in .NET

Top Web Hosting Providers[^]

Do, or do not. There is no 'try'.

GeneralRe: Get window handle on which mouse button was clicked Pin
transoft29-Oct-09 7:37
transoft29-Oct-09 7:37 
GeneralRe: Get window handle on which mouse button was clicked Pin
staticv29-Oct-09 7:58
staticv29-Oct-09 7:58 
GeneralRe: Get window handle on which mouse button was clicked Pin
David Crow29-Oct-09 8:05
David Crow29-Oct-09 8:05 
QuestionHandle general messages in dialog procedure Pin
Lianqing29-Oct-09 3:49
Lianqing29-Oct-09 3:49 
AnswerRe: Handle general messages in dialog procedure Pin
transoft29-Oct-09 7:22
transoft29-Oct-09 7:22 
Questioncreate window groups [closed - solved: feature not in Windows] Pin
shaosean29-Oct-09 2:42
shaosean29-Oct-09 2:42 
AnswerRe: create window groups Pin
David Crow29-Oct-09 3:04
David Crow29-Oct-09 3:04 
GeneralRe: create window groups Pin
shaosean29-Oct-09 3:09
shaosean29-Oct-09 3:09 
GeneralRe: create window groups Pin
David Crow29-Oct-09 3:13
David Crow29-Oct-09 3:13 
GeneralRe: create window groups Pin
shaosean29-Oct-09 3:25
shaosean29-Oct-09 3:25 
GeneralRe: create window groups Pin
David Crow29-Oct-09 3:33
David Crow29-Oct-09 3:33 
GeneralRe: create window groups Pin
shaosean29-Oct-09 8:42
shaosean29-Oct-09 8:42 
GeneralRe: create window groups Pin
David Crow29-Oct-09 8:48
David Crow29-Oct-09 8:48 
GeneralRe: create window groups Pin
shaosean29-Oct-09 9:25
shaosean29-Oct-09 9:25 
GeneralRe: create window groups Pin
CPallini29-Oct-09 3:24
mveCPallini29-Oct-09 3:24 
GeneralRe: create window groups Pin
Maximilien29-Oct-09 4:23
Maximilien29-Oct-09 4:23 
GeneralRe: create window groups Pin
shaosean29-Oct-09 8:39
shaosean29-Oct-09 8:39 

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.