Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: where can i download visual c++ setup!! Pin
dianazheng22-Dec-02 14:35
dianazheng22-Dec-02 14:35 
GeneralRe: where can i download visual c++ setup!! Pin
Jacques Troux22-Dec-02 5:40
sussJacques Troux22-Dec-02 5:40 
GeneralRe: where can i download visual c++ setup!! Pin
Christian Graus22-Dec-02 11:21
protectorChristian Graus22-Dec-02 11:21 
GeneralCreateProcessWithLogonW Pin
Mazdak21-Dec-02 21:37
Mazdak21-Dec-02 21:37 
GeneralRe: CreateProcessWithLogonW Pin
Gary R. Wheeler22-Dec-02 5:15
Gary R. Wheeler22-Dec-02 5:15 
GeneralRe: CreateProcessWithLogonW Pin
Michael Dunn22-Dec-02 5:41
sitebuilderMichael Dunn22-Dec-02 5:41 
Generalcallback Pin
king_of_the_world21-Dec-02 20:51
king_of_the_world21-Dec-02 20:51 
GeneralRe: callback Pin
Paul M Watt21-Dec-02 21:48
mentorPaul M Watt21-Dec-02 21:48 
By calling RegisterClass you are changing that class for all subsequent calls to CreateWindow for that class.

If you want to change the wndproc for a class of a window that has already been created you will need to call ::SetClassLong and set the GCL_WNDPROC index.

Optionally if you just want to subclass one specific window you should use ::SetWindowLong and replace the wndproc for that one window with GWL_WNDPROC.

I am not sure that you will be able to do what you are trying to do unless you can get your code loaded into the same process that created the desktop window (probably explorer.exe). Because the address that you set for the wndproc will be in a different address space and will not be accessible unless it is in the same process.

Good Luck


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: callback Pin
king_of_the_world22-Dec-02 2:16
king_of_the_world22-Dec-02 2:16 
GeneralRe: callback Pin
Paul M Watt22-Dec-02 7:11
mentorPaul M Watt22-Dec-02 7:11 
GeneralRe: callback Pin
king_of_the_world22-Dec-02 9:46
king_of_the_world22-Dec-02 9:46 
GeneralRe: callback Pin
Paul M Watt22-Dec-02 12:20
mentorPaul M Watt22-Dec-02 12:20 
GeneralRe: callback Pin
king_of_the_world25-Dec-02 20:11
king_of_the_world25-Dec-02 20:11 
QuestionHow to build tool in MS Office? Pin
JATE21-Dec-02 18:37
JATE21-Dec-02 18:37 
AnswerRe: How to build tool in MS Office? Pin
Al_Pennyworth23-Dec-02 2:45
Al_Pennyworth23-Dec-02 2:45 
GeneralCComboBox derrived class messages Pin
Joel Holdsworth21-Dec-02 11:46
Joel Holdsworth21-Dec-02 11:46 
GeneralRe: CComboBox derrived class messages Pin
Michael Dunn21-Dec-02 13:46
sitebuilderMichael Dunn21-Dec-02 13:46 
GeneralDLL_PROCESS_ATTACH und geladene Module Pin
21-Dec-02 6:36
suss21-Dec-02 6:36 
GeneralRe: DLL_PROCESS_ATTACH und geladene Module Pin
Anonymous21-Dec-02 6:40
Anonymous21-Dec-02 6:40 
GeneralReg path from an HKEY Pin
Nish Nishant21-Dec-02 6:33
sitebuilderNish Nishant21-Dec-02 6:33 
GeneralRe: Reg path from an HKEY Pin
Jason Henderson21-Dec-02 8:33
Jason Henderson21-Dec-02 8:33 
GeneralRe: Reg path from an HKEY Pin
Nish Nishant21-Dec-02 10:35
sitebuilderNish Nishant21-Dec-02 10:35 
GeneralRe: Reg path from an HKEY Pin
Scott H. Settlemier23-Dec-02 12:47
Scott H. Settlemier23-Dec-02 12:47 
GeneralQuestion about MSDN example Pin
Mazdak21-Dec-02 5:11
Mazdak21-Dec-02 5:11 
GeneralRe: Question about MSDN example Pin
Michael Dunn21-Dec-02 5:20
sitebuilderMichael Dunn21-Dec-02 5:20 

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.