Click here to Skip to main content
15,940,430 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Converting data from TextBox (String^) to string Pin
iMikki29-Oct-09 8:41
iMikki29-Oct-09 8:41 
QuestionTerminateProcess() and windows messages. Pin
Souldrift29-Oct-09 4:23
Souldrift29-Oct-09 4:23 
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 
Well, I was using WH_MOUSE_LL earlier. I changed my code to WH_MOUSE.
Now the code is:

HWND hWnd = NULL;
HWND hDesktopListWnd = NULL;

hWnd = FindWindow(_T("ProgMan"), NULL);
hWnd = GetWindow(hWnd, GW_CHILD);
hDesktopListWnd = GetWindow(hWnd, GW_CHILD);

threadID = GetWindowThreadProcessId(hDesktopListWnd, NULL);

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


It installs the hook successfully, but I don't get the mouse hook events now. Basically I want to get click events when any icon on the desktop is clicked.

Top Web Hosting Providers[^]

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

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 
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 

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.