Click here to Skip to main content
15,914,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: cleanup, DestroyWindow or OnDestroy? Pin
Hamed Musavi20-Sep-07 20:16
Hamed Musavi20-Sep-07 20:16 
GeneralRe: cleanup, DestroyWindow or OnDestroy? Pin
DevMentor.org20-Sep-07 20:32
DevMentor.org20-Sep-07 20:32 
GeneralRe: cleanup, DestroyWindow or OnDestroy? Pin
Hamed Musavi20-Sep-07 21:17
Hamed Musavi20-Sep-07 21:17 
GeneralRe: cleanup, DestroyWindow or OnDestroy? Pin
DevMentor.org20-Sep-07 21:25
DevMentor.org20-Sep-07 21:25 
GeneralRe: cleanup, DestroyWindow or OnDestroy? Pin
Hamed Musavi20-Sep-07 22:33
Hamed Musavi20-Sep-07 22:33 
GeneralRe: cleanup, DestroyWindow or OnDestroy? Pin
DevMentor.org21-Sep-07 8:22
DevMentor.org21-Sep-07 8:22 
QuestionControlling other applications? Pin
Lord Kixdemp20-Sep-07 16:07
Lord Kixdemp20-Sep-07 16:07 
AnswerRe: Controlling other applications? Pin
Steve Echols20-Sep-07 16:51
Steve Echols20-Sep-07 16:51 
Yes, it's called subclassing. Basically you can steal any messages from the other window, modify it it, eat it, pass it on, or do whatever you want with it.

Been awhile since I've done it, but you can replace an existing windows WndProc with your own, using SetWindowLong and GWL_WNDPROC.

There are a ton of articles on CP, but can't seem to locate the one I was thinking of...

[edit] Look at CWnd::SubclassWindow or CWindowImpl::SubclassWindow if using ATL/WTL. [/edit]


- S
50 cups of coffee and you know it's on!

AnswerRe: Controlling other applications? Pin
nbugalia20-Sep-07 19:27
nbugalia20-Sep-07 19:27 
AnswerRe: Controlling other applications? Pin
ThatsAlok20-Sep-07 23:12
ThatsAlok20-Sep-07 23:12 
GeneralRe: Controlling other applications? Pin
Rajesh R Subramanian21-Sep-07 0:39
professionalRajesh R Subramanian21-Sep-07 0:39 
GeneralRe: Controlling other applications? Pin
ThatsAlok21-Sep-07 0:59
ThatsAlok21-Sep-07 0:59 
GeneralRe: Controlling other applications? Pin
Lord Kixdemp21-Sep-07 1:05
Lord Kixdemp21-Sep-07 1:05 
JokeOne More ?? Pin
ThatsAlok20-Sep-07 23:13
ThatsAlok20-Sep-07 23:13 
JokeRe: One More ?? Pin
Lord Kixdemp21-Sep-07 10:01
Lord Kixdemp21-Sep-07 10:01 
GeneralRe: One More ?? Pin
Mark Salsbery21-Sep-07 10:12
Mark Salsbery21-Sep-07 10:12 
GeneralRe: One More ?? Pin
Lord Kixdemp21-Sep-07 13:27
Lord Kixdemp21-Sep-07 13:27 
Questionkrunode Pin
youbo20-Sep-07 16:05
youbo20-Sep-07 16:05 
AnswerRe: krunode Pin
Lord Kixdemp20-Sep-07 16:10
Lord Kixdemp20-Sep-07 16:10 
QuestionRe: krunode Pin
David Crow20-Sep-07 17:22
David Crow20-Sep-07 17:22 
AnswerRe: krunode Pin
nbugalia20-Sep-07 19:22
nbugalia20-Sep-07 19:22 
AnswerRe: krunode Pin
John R. Shaw20-Sep-07 20:43
John R. Shaw20-Sep-07 20:43 
QuestionHow to link to app.config? Pin
Chester Lou20-Sep-07 15:13
Chester Lou20-Sep-07 15:13 
AnswerRe: How to link to app.config? Pin
DevMentor.org20-Sep-07 18:01
DevMentor.org20-Sep-07 18:01 
GeneralRe: How to link to app.config? Pin
Chester Lou20-Sep-07 20:07
Chester Lou20-Sep-07 20:07 

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.