Click here to Skip to main content
15,921,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to set the text verticle center in CEdit Pin
Ryan Binns27-Jun-03 4:33
Ryan Binns27-Jun-03 4:33 
GeneralToolbar question Pin
User 988527-Jun-03 3:08
User 988527-Jun-03 3:08 
GeneralRe: Toolbar question Pin
Ryan Binns27-Jun-03 4:31
Ryan Binns27-Jun-03 4:31 
GeneralRe: Toolbar question Pin
User 988527-Jun-03 4:39
User 988527-Jun-03 4:39 
GeneralProblem while deriving from CList Pin
Charles Liu27-Jun-03 2:40
Charles Liu27-Jun-03 2:40 
Questionediting 24bit toolbar in editor??? Pin
schaereran@gmx.net27-Jun-03 2:39
schaereran@gmx.net27-Jun-03 2:39 
GeneralSubclassing windows of other processes Pin
S O S27-Jun-03 2:12
S O S27-Jun-03 2:12 
GeneralRe: Subclassing windows of other processes Pin
Ryan Binns27-Jun-03 2:35
Ryan Binns27-Jun-03 2:35 
Yes, but only by using a global hook. There is information on MSDN about how to do this.

Basically you set a global hook (usually a WH_CBT hook) from inside a DLL and when the hook function is called by Windows for a particular process, your DLL is loaded into the address space of that process. You can then subclass whichever windows in that process you want. Usually, you set a hook that activates whenever the HCBT_CREATEWND code is passed (a window is created), but if the window is already created, you may never get the opportunity to subclass it.

Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

GeneralRe: Subclassing windows of other processes Pin
S O S27-Jun-03 3:58
S O S27-Jun-03 3:58 
GeneralRe: Subclassing windows of other processes Pin
Ryan Binns27-Jun-03 4:00
Ryan Binns27-Jun-03 4:00 
GeneralRe: Subclassing windows of other processes Pin
MAAK29-Jun-03 12:25
MAAK29-Jun-03 12:25 
GeneralRe: Subclassing windows of other processes Pin
Ryan Binns29-Jun-03 14:58
Ryan Binns29-Jun-03 14:58 
GeneralUpdation of Editboxes individually Pin
pani6827-Jun-03 1:03
pani6827-Jun-03 1:03 
GeneralRe: Updation of Editboxes individually Pin
Ryan Binns27-Jun-03 1:20
Ryan Binns27-Jun-03 1:20 
GeneralShellExecute Pin
Anonymous27-Jun-03 0:18
Anonymous27-Jun-03 0:18 
GeneralRe: ShellExecute Pin
User 665827-Jun-03 1:02
User 665827-Jun-03 1:02 
GeneralRe: ShellExecute Pin
Rage27-Jun-03 1:05
professionalRage27-Jun-03 1:05 
GeneralRe: ShellExecute Pin
Anonymous27-Jun-03 1:20
Anonymous27-Jun-03 1:20 
GeneralRe: ShellExecute Pin
basementman27-Jun-03 3:53
basementman27-Jun-03 3:53 
GeneralRe: ShellExecute Pin
Rage27-Jun-03 4:37
professionalRage27-Jun-03 4:37 
Generalquestion about STL list Pin
zecodela26-Jun-03 23:55
zecodela26-Jun-03 23:55 
GeneralRe: question about STL list Pin
zecodela27-Jun-03 0:01
zecodela27-Jun-03 0:01 
GeneralRe: question about STL list Pin
Joaquín M López Muñoz27-Jun-03 0:42
Joaquín M López Muñoz27-Jun-03 0:42 
GeneralRe: question about STL list Pin
zecodela27-Jun-03 0:52
zecodela27-Jun-03 0:52 
GeneralRe: question about STL list Pin
Joaquín M López Muñoz27-Jun-03 2:58
Joaquín M López Muñoz27-Jun-03 2:58 

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.