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

C / C++ / MFC

 
GeneralRe: Reader Writer lock Pin
El Corazon5-Sep-07 9:52
El Corazon5-Sep-07 9:52 
QuestionA very basic question Pin
HakunaMatada5-Sep-07 0:24
HakunaMatada5-Sep-07 0:24 
AnswerRe: A very basic question Pin
Matthew Faithfull5-Sep-07 0:47
Matthew Faithfull5-Sep-07 0:47 
AnswerRe: A very basic question Pin
Waldermort5-Sep-07 0:58
Waldermort5-Sep-07 0:58 
AnswerRe: A very basic question Pin
Hamid_RT5-Sep-07 1:02
Hamid_RT5-Sep-07 1:02 
QuestionIE question Pin
Mohit19825-Sep-07 0:18
Mohit19825-Sep-07 0:18 
AnswerRe: IE question Pin
Hamid_RT5-Sep-07 1:05
Hamid_RT5-Sep-07 1:05 
QuestionHow to retrive the handle of other window. Pin
GauranG Shah4-Sep-07 23:31
GauranG Shah4-Sep-07 23:31 
Hello Friends,

Can anybody tell me how to retrive the handle of other window/s which is not the part of our application.
I am using global Mouse hook. and done the following things to get the handle of the window when user clicks on it, but it dont work.
I dont know what is the problem.

please Note I am using Win32 Application

Below is the code I use in Mouse Hook
<br />
...<br />
...<br />
if(wParam== WM_LBUTTONDOWN)<br />
{<br />
	hWndActWnd = GetActiveWindow();<br />
	if(hWndActWnd == NULL)<br />
		OutputDebugString(L"Error, GetActiveWindow()");<br />
        PostMessage(hWndApp,MOUSE_DOWN,(WPARAM)hWndActWnd,0);<br />
}<br />
...<br />
...<br />


And Below is the Code I use in My Application
<br />
...<br />
...<br />
HWND hWnd;<br />
case MOUSE_DOWN:<br />
	     hWnd=(HWND)wParam;<br />
             break;<br />
...

AnswerRe: How to retrive the handle of other window. Pin
Waldermort4-Sep-07 23:56
Waldermort4-Sep-07 23:56 
QuestionMFC Multiple Inheritance Pin
Krishnatv4-Sep-07 22:50
Krishnatv4-Sep-07 22:50 
AnswerRe: MFC Multiple Inheritance Pin
toxcct4-Sep-07 22:53
toxcct4-Sep-07 22:53 
GeneralRe: MFC Multiple Inheritance Pin
Krishnatv4-Sep-07 23:07
Krishnatv4-Sep-07 23:07 
GeneralRe: MFC Multiple Inheritance Pin
toxcct4-Sep-07 23:20
toxcct4-Sep-07 23:20 
GeneralRe: MFC Multiple Inheritance Pin
BadKarma5-Sep-07 4:35
BadKarma5-Sep-07 4:35 
AnswerRe: MFC Multiple Inheritance Pin
Matthew Faithfull5-Sep-07 0:01
Matthew Faithfull5-Sep-07 0:01 
GeneralRe: MFC Multiple Inheritance Pin
Krishnatv5-Sep-07 0:46
Krishnatv5-Sep-07 0:46 
GeneralRe: MFC Multiple Inheritance Pin
Vaclav_5-Sep-07 3:06
Vaclav_5-Sep-07 3:06 
GeneralRe: MFC Multiple Inheritance Pin
led mike5-Sep-07 4:34
led mike5-Sep-07 4:34 
Questionget it to clipboard Pin
josip cagalj4-Sep-07 22:33
josip cagalj4-Sep-07 22:33 
AnswerRe: get it to clipboard Pin
Russell'4-Sep-07 23:36
Russell'4-Sep-07 23:36 
AnswerRe: get it to clipboard Pin
Hamid_RT5-Sep-07 0:42
Hamid_RT5-Sep-07 0:42 
Question[Message Deleted] Pin
shell34-Sep-07 22:32
shell34-Sep-07 22:32 
AnswerRe: Illegal System DLL Relocation Pin
Hamid_RT5-Sep-07 0:43
Hamid_RT5-Sep-07 0:43 
AnswerRe: Illegal System DLL Relocation Pin
Waldermort5-Sep-07 1:18
Waldermort5-Sep-07 1:18 
GeneralRe: Illegal System DLL Relocation Pin
Waldermort5-Sep-07 1:37
Waldermort5-Sep-07 1:37 

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.