Click here to Skip to main content
15,892,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSystem.XML – alike class library for Visual C++ 6.0 ? Pin
Serge Krynine2-Apr-03 19:43
Serge Krynine2-Apr-03 19:43 
AnswerRe: System.XML – alike class library for Visual C++ 6.0 ? Pin
Pavel Klocek2-Apr-03 20:18
Pavel Klocek2-Apr-03 20:18 
AnswerRe: System.XML – alike class library for Visual C++ 6.0 ? Pin
Ravi Bhavnani3-Apr-03 4:23
professionalRavi Bhavnani3-Apr-03 4:23 
Generalsplitter window Pin
getsammy2-Apr-03 17:16
getsammy2-Apr-03 17:16 
GeneralRegistry manipulation Pin
J.B.2-Apr-03 15:32
J.B.2-Apr-03 15:32 
GeneralRe: Registry manipulation Pin
RaajaOfSelf2-Apr-03 16:27
RaajaOfSelf2-Apr-03 16:27 
GeneralRe: Registry manipulation Pin
De Nardis Andrea2-Apr-03 20:52
De Nardis Andrea2-Apr-03 20:52 
QuestionI want to Hook Mouse but failed? Pin
white jungle2-Apr-03 15:30
white jungle2-Apr-03 15:30 
I use following code to hook other program's MOUSE message:
m_hHook=SetWindowsHookEx(WH_MOUSE,HookProc,AfxGetInstanceHandle(),dwReturn);<br />

the var m_hHook is defined for record the MOUSE HOOK,and these code whin a dll program.dwReturn was a var for a Dlg based program's thread ID.
when I debug it,I found that it it can set hook to the Dlg based program.but the process HookProc was never be called.
is there some error in my code?But my code just simple as above.
And the HookProc as follow:
<br />
LRESULT	CALLBACK HookProc(int nCode,  WPARAM wParam,  LPARAM lParam  )<br />
{<br />
        //I set a breakpoint here ,but never run to here!<br />
	return	CallNextHookEx(m_hHook,nCode,wParam,lParam);<br />
}<br />

In my opinion,everything is OK!
But when I click my mouse in the DLG based program,the process HookProc had never been execute!
IS there somethingwrong?

Don't look at me in that way!
AnswerRe: I want to Hook Mouse but failed? Pin
Simon.W2-Apr-03 18:47
Simon.W2-Apr-03 18:47 
GeneralRe: I want to Hook Mouse but failed? Pin
white jungle2-Apr-03 19:25
white jungle2-Apr-03 19:25 
GeneralRe: I want to Hook Mouse but failed? Pin
Simon.W2-Apr-03 20:37
Simon.W2-Apr-03 20:37 
GeneralDirectory changing.. and command lines.. Pin
(Steven Hicks)n+12-Apr-03 12:45
(Steven Hicks)n+12-Apr-03 12:45 
Generalsendmessage and CDialog pointer Pin
nss2-Apr-03 12:19
nss2-Apr-03 12:19 
GeneralRe: sendmessage and CDialog pointer Pin
valikac2-Apr-03 12:43
valikac2-Apr-03 12:43 
GeneralRe: sendmessage and CDialog pointer Pin
nss2-Apr-03 12:50
nss2-Apr-03 12:50 
GeneralRe: sendmessage and CDialog pointer Pin
Dave Bryant2-Apr-03 13:01
Dave Bryant2-Apr-03 13:01 
GeneralRe: sendmessage and CDialog pointer Pin
nss2-Apr-03 13:56
nss2-Apr-03 13:56 
GeneralRe: sendmessage and CDialog pointer Pin
Dave Bryant2-Apr-03 13:58
Dave Bryant2-Apr-03 13:58 
GeneralRe: sendmessage and CDialog pointer Pin
Dave Bryant2-Apr-03 14:04
Dave Bryant2-Apr-03 14:04 
GeneralWow! Thanks!!! Pin
ns3-Apr-03 1:22
ns3-Apr-03 1:22 
GeneralRe: Wow! Thanks!!! Pin
Dave Bryant3-Apr-03 8:35
Dave Bryant3-Apr-03 8:35 
GeneralCustom Win32 Button Class Pin
England 2 Turkey 02-Apr-03 10:36
sussEngland 2 Turkey 02-Apr-03 10:36 
QuestionAccess ActiveX via Dialog the nonMFC way? Pin
Dan Thurman2-Apr-03 10:15
Dan Thurman2-Apr-03 10:15 
GeneralDirect3D MDI... nasty! Pin
Bartosz Bien2-Apr-03 9:58
Bartosz Bien2-Apr-03 9:58 
QuestionWhat can cause Warning: calling DestroyWindow in CDialog::~CDialog -- OnDestroy or PostNcDestroy in derived class will not be called. Pin
cdsmith2-Apr-03 9:35
cdsmith2-Apr-03 9:35 

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.