Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Drop down list behaviour in comboboxes Pin
David Crow27-Nov-07 10:03
David Crow27-Nov-07 10:03 
QuestionRe: Drop down list behaviour in comboboxes [modified] Pin
Wxffles27-Nov-07 11:46
Wxffles27-Nov-07 11:46 
AnswerRe: Drop down list behaviour in comboboxes Pin
led mike27-Nov-07 10:08
led mike27-Nov-07 10:08 
QuestionMenu Item not being enabled?? Pin
Kiran Satish27-Nov-07 8:14
Kiran Satish27-Nov-07 8:14 
QuestionRe: Menu Item not being enabled?? Pin
CPallini27-Nov-07 9:48
mveCPallini27-Nov-07 9:48 
AnswerRe: Menu Item not being enabled?? Pin
Kiran Satish27-Nov-07 10:38
Kiran Satish27-Nov-07 10:38 
AnswerRe: Menu Item not being enabled?? Pin
Kiran Satish28-Nov-07 5:04
Kiran Satish28-Nov-07 5:04 
QuestionCRuntimeClass - basic question - class access?? Pin
Vaclav_27-Nov-07 6:25
Vaclav_27-Nov-07 6:25 
I am over my head again with the implementation of this "class" / structure.
Could someone please explain to me why the following code does what it does?

CRuntimeClass *pView_Tab = pVisualObject_tab->m_pRuntimeClass;

This code shows "normal " CRuntimeClass members of class CMyTabView.


CMyTabView *pTab = (CMyTabView*) pVisualObject_tab->m_pRuntimeClass;
pTab->AddTab("TEST");

And this one has same pointer and show the CMyTabView class and lets me run the AddTab of CMyTabView.


I have a debug trace but cannot paste it here
until I figure out how to copy it from IDE!


I need to run the AddTab function and like to know why these two lines have same pointer with “different results”.
I don’t think my code is right since it needs a cast to make it work. I think it defeats the intent of access to “runtime class”.

Thanks for you help.

Cheers
Vaclav




QuestionRe: CRuntimeClass - basic question - class access?? Pin
Mark Salsbery27-Nov-07 6:51
Mark Salsbery27-Nov-07 6:51 
AnswerRe: CRuntimeClass - basic question - class access?? Pin
Vaclav_27-Nov-07 7:36
Vaclav_27-Nov-07 7:36 
GeneralRe: CRuntimeClass - basic question - class access?? Pin
Mark Salsbery27-Nov-07 7:42
Mark Salsbery27-Nov-07 7:42 
GeneralRe: CRuntimeClass - basic question - class access?? Pin
Vaclav_27-Nov-07 7:55
Vaclav_27-Nov-07 7:55 
GeneralRe: CRuntimeClass - basic question - class access?? Pin
led mike27-Nov-07 8:01
led mike27-Nov-07 8:01 
GeneralRe: CRuntimeClass - basic question - class access?? Pin
Mark Salsbery27-Nov-07 8:04
Mark Salsbery27-Nov-07 8:04 
AnswerRe: CRuntimeClass - basic question - class access?? Pin
led mike27-Nov-07 7:34
led mike27-Nov-07 7:34 
GeneralRe: CRuntimeClass - basic question - class access?? Pin
Vaclav_27-Nov-07 7:49
Vaclav_27-Nov-07 7:49 
GeneralOfftopic Pin
Nelek27-Nov-07 21:55
protectorNelek27-Nov-07 21:55 
GeneralRe: Offtopic Pin
Vaclav_28-Nov-07 6:43
Vaclav_28-Nov-07 6:43 
QuestionVScroll - speed up Pin
josip cagalj27-Nov-07 3:54
josip cagalj27-Nov-07 3:54 
QuestionRe: VScroll - speed up Pin
Nelek27-Nov-07 4:04
protectorNelek27-Nov-07 4:04 
QuestionWhat are you doing, man? Pin
CPallini27-Nov-07 4:17
mveCPallini27-Nov-07 4:17 
AnswerRe: What are you doing, man? Pin
Nelek27-Nov-07 21:48
protectorNelek27-Nov-07 21:48 
GeneralRe: What are you doing, man? Pin
CPallini27-Nov-07 22:09
mveCPallini27-Nov-07 22:09 
GeneralRe: What are you doing, man? Pin
Nelek27-Nov-07 22:27
protectorNelek27-Nov-07 22:27 
GeneralRe: What are you doing, man? Pin
CPallini27-Nov-07 23:44
mveCPallini27-Nov-07 23:44 

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.