Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionImage on a button Pin
LCI9-Oct-06 4:12
LCI9-Oct-06 4:12 
AnswerRe: Image on a button Pin
David Crow9-Oct-06 4:14
David Crow9-Oct-06 4:14 
AnswerRe: Image on a button Pin
Galatei9-Oct-06 4:30
Galatei9-Oct-06 4:30 
AnswerRe: Image on a button Pin
Hamid_RT9-Oct-06 6:31
Hamid_RT9-Oct-06 6:31 
QuestionWho can help me ?How to hook the messages of a application's form? Pin
cqwty9-Oct-06 3:59
cqwty9-Oct-06 3:59 
AnswerRe: Who can help me ?How to hook the messages of a application's form? Pin
jipai9-Oct-06 7:00
jipai9-Oct-06 7:00 
GeneralRe: Who can help me ?How to hook the messages of a application's form? Pin
cqwty9-Oct-06 17:33
cqwty9-Oct-06 17:33 
GeneralRe: Who can help me ?How to hook the messages of a application's form? Pin
jipai9-Oct-06 18:43
jipai9-Oct-06 18:43 
I've been battling the hooking and subclassing for the last 3 or 4 weeks. I finally get it to work. You haven't answered the question.

How did you determine it's not working when the form is minimized?

If the destination application is running in another process, you won't be able to step your code in the debugger. Instead, you should open up a new visual studio instance, attach to the process of the destination application, open the file you want to debug, add breakpoints.

Or, use the OutputDebugString API to print out all the window messages and Sysinternals DebugView to see the debug messages.

Are you hooking to WH_CBT or WH_CALLWNDPROC? Perhaps you should paste portion of your code here (especially the part where you call SetWindowsHookEx and SetWindowLong) if you really need help.
GeneralRe: Who can help me ?How to hook the messages of a application's form? Pin
cqwty10-Oct-06 0:56
cqwty10-Oct-06 0:56 
GeneralRe: Who can help me ?How to hook the messages of a application's form? Pin
jipai10-Oct-06 6:38
jipai10-Oct-06 6:38 
GeneralRe: Who can help me ?How to hook the messages of a application's form? Pin
cqwty10-Oct-06 15:29
cqwty10-Oct-06 15:29 
GeneralRe: Who can help me ?How to hook the messages of a application's form? Pin
cqwty10-Oct-06 15:33
cqwty10-Oct-06 15:33 
GeneralRe: Who can help me ?How to hook the messages of a application's form? Pin
jipai11-Oct-06 15:36
jipai11-Oct-06 15:36 
GeneralRe: Who can help me ?How to hook the messages of a application's form? Pin
cqwty12-Oct-06 16:28
cqwty12-Oct-06 16:28 
GeneralRe: Who can help me ?How to hook the messages of a application's form? Pin
jipai15-Oct-06 17:11
jipai15-Oct-06 17:11 
GeneralRe: Who can help me ?How to hook the messages of a application's form? Pin
jipai11-Oct-06 15:40
jipai11-Oct-06 15:40 
QuestionWho can help me ?How to hook the messages of a application's form? Pin
cqwty9-Oct-06 3:57
cqwty9-Oct-06 3:57 
AnswerRe: Who can help me ?How to hook the messages of a application's form? Pin
cqwty9-Oct-06 5:03
cqwty9-Oct-06 5:03 
QuestionError C2248: cannot access protected struct declared in class Pin
Checker20039-Oct-06 3:42
Checker20039-Oct-06 3:42 
AnswerRe: Error C2248: cannot access protected struct declared in class Pin
toxcct9-Oct-06 3:49
toxcct9-Oct-06 3:49 
GeneralRe: Error C2248: cannot access protected struct declared in class Pin
Checker20039-Oct-06 4:23
Checker20039-Oct-06 4:23 
GeneralRe: Error C2248: cannot access protected struct declared in class Pin
toxcct9-Oct-06 4:26
toxcct9-Oct-06 4:26 
GeneralRe: Error C2248: cannot access protected struct declared in class Pin
Checker20039-Oct-06 4:30
Checker20039-Oct-06 4:30 
GeneralRe: Error C2248: cannot access protected struct declared in class Pin
toxcct9-Oct-06 4:38
toxcct9-Oct-06 4:38 
GeneralRe: Error C2248: cannot access protected struct declared in class Pin
Zac Howland9-Oct-06 4:42
Zac Howland9-Oct-06 4:42 

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.