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

C / C++ / MFC

 
AnswerRe: what's the best time to subclass CHeaderCtrl? Pin
Blake Miller29-Jan-07 12:58
Blake Miller29-Jan-07 12:58 
How about in the OnCreate for the CListCtrl.
That way, you get to subclass even if the list control window is never shown, if that matters or not.

From MSDN:

The CWnd object receives this call after the window is created but before it becomes visible. OnCreate is called before the Create or CreateEx member function returns.
Override this member function to perform any needed initialization of a derived class.
The CREATESTRUCT structure contains copies of the parameters used to create the window.

GeneralRe: what's the best time to subclass CHeaderCtrl? Pin
eat_union30-Jan-07 2:58
eat_union30-Jan-07 2:58 
GeneralRe: what's the best time to subclass CHeaderCtrl? Pin
Blake Miller30-Jan-07 4:43
Blake Miller30-Jan-07 4:43 
GeneralRe: what's the best time to subclass CHeaderCtrl? [modified] Pin
eat_union30-Jan-07 22:32
eat_union30-Jan-07 22:32 
GeneralRe: what's the best time to subclass CHeaderCtrl? Pin
Blake Miller31-Jan-07 5:56
Blake Miller31-Jan-07 5:56 
GeneralConfused Workspace Class View Pin
hairy_hats29-Jan-07 0:04
hairy_hats29-Jan-07 0:04 
GeneralRe: Confused Workspace Class View Pin
krmed29-Jan-07 0:33
krmed29-Jan-07 0:33 
QuestionDLL problem Pin
sachin ahuja29-Jan-07 0:02
sachin ahuja29-Jan-07 0:02 
AnswerRe: DLL problem Pin
Eytukan29-Jan-07 4:11
Eytukan29-Jan-07 4:11 
GeneralRe: DLL problem Pin
sachin ahuja30-Jan-07 21:40
sachin ahuja30-Jan-07 21:40 
AnswerRe: DLL problem Pin
malaugh29-Jan-07 8:53
malaugh29-Jan-07 8:53 
AnswerRe: DLL problem Pin
Stephen Hewitt29-Jan-07 12:16
Stephen Hewitt29-Jan-07 12:16 
AnswerRe: Control Event Pin
Don Box29-Jan-07 0:10
Don Box29-Jan-07 0:10 
GeneralRe: Control Event Pin
Shah Satish29-Jan-07 0:14
Shah Satish29-Jan-07 0:14 
QuestionRe: Control Event Pin
prasad_som29-Jan-07 0:18
prasad_som29-Jan-07 0:18 
AnswerRe: Control Event Pin
Shah Satish29-Jan-07 0:24
Shah Satish29-Jan-07 0:24 
GeneralRe: Control Event Pin
prasad_som29-Jan-07 1:25
prasad_som29-Jan-07 1:25 
GeneralRe: Control Event Pin
Shah Satish29-Jan-07 2:07
Shah Satish29-Jan-07 2:07 
GeneralRe: Control Event Pin
Waldermort29-Jan-07 1:06
Waldermort29-Jan-07 1:06 
GeneralRe: Control Event Pin
Shah Satish29-Jan-07 2:07
Shah Satish29-Jan-07 2:07 
GeneralRe: Control Event Pin
Hamid_RT29-Jan-07 18:23
Hamid_RT29-Jan-07 18:23 
GeneralRe: Control Event Pin
Laxman Auti30-Jan-07 3:33
Laxman Auti30-Jan-07 3:33 
Questioni AllDLL problem Pin
sachin ahuja28-Jan-07 23:58
sachin ahuja28-Jan-07 23:58 
AnswerRe: i AllDLL problem Pin
Hamid_RT14-Feb-07 5:51
Hamid_RT14-Feb-07 5:51 
QuestionDouble Buffer Problem Pin
Bhavesh Bagadiya28-Jan-07 23:34
Bhavesh Bagadiya28-Jan-07 23:34 

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.