Click here to Skip to main content
15,905,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can I get the window handle from process id? Pin
Anonymous24-Nov-03 17:28
Anonymous24-Nov-03 17:28 
AnswerRe: How can I get the window handle from process id? Pin
John R. Shaw24-Nov-03 18:26
John R. Shaw24-Nov-03 18:26 
GeneralRe: How can I get the window handle from process id? Pin
Anonymous24-Nov-03 21:51
Anonymous24-Nov-03 21:51 
GeneralOriginal Window Procedure Pin
alex.barylski24-Nov-03 17:24
alex.barylski24-Nov-03 17:24 
GeneralRe: Original Window Procedure Pin
John R. Shaw24-Nov-03 18:05
John R. Shaw24-Nov-03 18:05 
GeneralRe: Original Window Procedure Pin
alex.barylski24-Nov-03 18:10
alex.barylski24-Nov-03 18:10 
GeneralRe: Original Window Procedure Pin
John R. Shaw24-Nov-03 18:42
John R. Shaw24-Nov-03 18:42 
GeneralRe: Original Window Procedure Pin
cmk24-Nov-03 21:57
cmk24-Nov-03 21:57 
Try the following :

either :
- use GetClassLongPtr(hWnd, GCLP_WNDPROC) which should not be changed when a window is subclassed as subclassing is window specific, and this is class specific.

or,
- get window classname
- create a new hidden instance of that window class
- get wndproc of new window
- this should be the same, original, wndproc for all instances of window class
- delete hidden window


...cmk

Save the whales - collect the whole set
GeneralActiveX Pin
vijisu24-Nov-03 16:26
vijisu24-Nov-03 16:26 
GeneralRe: ActiveX Pin
John R. Shaw24-Nov-03 18:36
John R. Shaw24-Nov-03 18:36 
GeneralHelp getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 15:14
Anonymous24-Nov-03 15:14 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Christian Graus24-Nov-03 15:26
protectorChristian Graus24-Nov-03 15:26 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 15:31
Anonymous24-Nov-03 15:31 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Christian Graus24-Nov-03 15:33
protectorChristian Graus24-Nov-03 15:33 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 16:17
Anonymous24-Nov-03 16:17 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 16:21
Anonymous24-Nov-03 16:21 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Christian Graus24-Nov-03 16:44
protectorChristian Graus24-Nov-03 16:44 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 17:11
Anonymous24-Nov-03 17:11 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Christian Graus24-Nov-03 16:42
protectorChristian Graus24-Nov-03 16:42 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 17:13
Anonymous24-Nov-03 17:13 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
John M. Drescher24-Nov-03 17:40
John M. Drescher24-Nov-03 17:40 
QuestionCDC::GetCharWidth ? Pin
Abin24-Nov-03 14:53
Abin24-Nov-03 14:53 
AnswerRe: CDC::GetCharWidth ? Pin
Christian Graus24-Nov-03 15:34
protectorChristian Graus24-Nov-03 15:34 
AnswerRe: CDC::GetCharWidth ? Pin
John R. Shaw24-Nov-03 16:49
John R. Shaw24-Nov-03 16:49 
GeneralGreat Pin
Abin24-Nov-03 18:48
Abin24-Nov-03 18:48 

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.