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

C / C++ / MFC

 
GeneralRe: ON_LBUTTONDOWN Pin
Vancouver29-Apr-07 19:38
Vancouver29-Apr-07 19:38 
GeneralRe: ON_LBUTTONDOWN Pin
PJ Arends29-Apr-07 21:19
professionalPJ Arends29-Apr-07 21:19 
GeneralRe: ON_LBUTTONDOWN Pin
Vancouver30-Apr-07 5:00
Vancouver30-Apr-07 5:00 
GeneralRe: ON_LBUTTONDOWN Pin
Mark Salsbery30-Apr-07 8:07
Mark Salsbery30-Apr-07 8:07 
GeneralRe: ON_LBUTTONDOWN Pin
Vancouver30-Apr-07 8:42
Vancouver30-Apr-07 8:42 
QuestionRe: ON_LBUTTONDOWN Pin
Mark Salsbery30-Apr-07 8:49
Mark Salsbery30-Apr-07 8:49 
AnswerRe: ON_LBUTTONDOWN Pin
Vancouver30-Apr-07 11:12
Vancouver30-Apr-07 11:12 
GeneralRe: ON_LBUTTONDOWN Pin
Mark Salsbery30-Apr-07 11:34
Mark Salsbery30-Apr-07 11:34 
Vancouver wrote:
The questions indicate, that there is no point to discuss this subject here and now. I have to work backwards and see, at which point the problem appears respectively disappears.


Cool.

I would start with just an empty, CStatic-derived class - with just the constructor implemented.
Create objects of the derived type to encapsulate the CStatic controls in the window.

Everything should work normally at that point. If not, then the problem is elsewhere - maybe
an existing problem has been exposed.

Once it works like that, add the mouse button handlers to the derived class. Initially, your
implementation can just call the base class implementation. Once that is done, you'd probably
simply need to notify the parent window of the clicks - via a message, member method, etc.

That should be the extent of the subclassing necessary for the controls Smile | :)

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: ON_LBUTTONDOWN Pin
Vancouver30-Apr-07 11:59
Vancouver30-Apr-07 11:59 
GeneralRe: ON_LBUTTONDOWN Pin
Mark Salsbery30-Apr-07 12:12
Mark Salsbery30-Apr-07 12:12 
QuestionExporting custom control via DLL Pin
alex.barylski29-Apr-07 18:10
alex.barylski29-Apr-07 18:10 
AnswerRe: Exporting custom control via DLL Pin
_AnsHUMAN_ 29-Apr-07 18:28
_AnsHUMAN_ 29-Apr-07 18:28 
Questionlist control and selected records Pin
hero199529-Apr-07 17:22
hero199529-Apr-07 17:22 
AnswerRe: list control and selected records Pin
_AnsHUMAN_ 29-Apr-07 17:53
_AnsHUMAN_ 29-Apr-07 17:53 
Questionpreprocessor macro inside string literal? Pin
PJ Arends29-Apr-07 17:08
professionalPJ Arends29-Apr-07 17:08 
AnswerRe: preprocessor macro inside string literal? Pin
Stephen Hewitt29-Apr-07 18:30
Stephen Hewitt29-Apr-07 18:30 
GeneralRe: preprocessor macro inside string literal? Pin
PJ Arends29-Apr-07 21:04
professionalPJ Arends29-Apr-07 21:04 
GeneralRe: preprocessor macro inside string literal? [modified] Pin
cmk30-Apr-07 13:53
cmk30-Apr-07 13:53 
AnswerRe: preprocessor macro inside string literal? Pin
cmk30-Apr-07 14:17
cmk30-Apr-07 14:17 
GeneralRe: preprocessor macro inside string literal? Pin
PJ Arends1-May-07 5:20
professionalPJ Arends1-May-07 5:20 
GeneralRe: preprocessor macro inside string literal? Pin
cmk1-May-07 11:45
cmk1-May-07 11:45 
AnswerRe: preprocessor macro inside string literal? Pin
Stephen Hewitt30-Apr-07 17:44
Stephen Hewitt30-Apr-07 17:44 
GeneralRe: preprocessor macro inside string literal? Pin
PJ Arends1-May-07 5:21
professionalPJ Arends1-May-07 5:21 
QuestionC++ help for arrays...average a value Pin
wertyou29-Apr-07 17:00
wertyou29-Apr-07 17:00 
AnswerRe: C++ help for arrays...average a value Pin
PJ Arends29-Apr-07 17:15
professionalPJ Arends29-Apr-07 17:15 

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.