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

C / C++ / MFC

 
GeneralRe: slider bar Pin
PJ Arends5-Sep-04 9:48
professionalPJ Arends5-Sep-04 9:48 
GeneralRe: slider bar Pin
Gary R. Wheeler5-Sep-04 9:57
Gary R. Wheeler5-Sep-04 9:57 
QuestionHow to freeze a process Pin
gamitech5-Sep-04 9:22
gamitech5-Sep-04 9:22 
AnswerRe: How to freeze a process Pin
Gary R. Wheeler5-Sep-04 10:04
Gary R. Wheeler5-Sep-04 10:04 
GeneralRe: How to freeze a process Pin
Neville Franks5-Sep-04 10:46
Neville Franks5-Sep-04 10:46 
GeneralRe: How to freeze a process Pin
Gary R. Wheeler5-Sep-04 14:42
Gary R. Wheeler5-Sep-04 14:42 
GeneralRe: How to freeze a process Pin
Anonymous6-Sep-04 9:52
Anonymous6-Sep-04 9:52 
GeneralDocument / view basic C++ question Pin
Vaclav5-Sep-04 9:22
Vaclav5-Sep-04 9:22 
I need to access / operate on selected document/view. I iterate thru the template / document / view using the well documented process (code snippet follows).
I do not understand why the debug shows returned pointers to the derived class when the API variables are assigned to "base" class as follows:

CDocTemplate *pDocTemplate;
CDocument *pDocument;
CView *pView;

The debug shows derived class name but only the base class functions and variables.

My question is - how do I get to the derived class?


"Standard " iteration:

POSITION positionTemplate = GetFirstDocTemplatePosition();
while(positionTemplate)
{
pDocTemplate = GetNextDocTemplate(positionTemplate);
POSITION positionDoc = pDocTemplate->GetFirstDocPosition();
while(positionDoc)
{
pDocument = pDocTemplate->GetNextDoc(positionDoc);
POSITION positionView = pDocument->GetFirstViewPosition();
while (positionView)
{
pView = pDocument->GetNextView(positionView);
etc.

Thanks for your help.
Vaclav

GeneralRe: Document / view basic C++ question Pin
PJ Arends5-Sep-04 10:09
professionalPJ Arends5-Sep-04 10:09 
GeneralRe: Document / view basic C++ question Pin
Vaclav5-Sep-04 19:59
Vaclav5-Sep-04 19:59 
GeneralRe: Document / view basic C++ question Pin
PJ Arends6-Sep-04 9:33
professionalPJ Arends6-Sep-04 9:33 
GeneralValidating Paths Pin
Joel Holdsworth5-Sep-04 8:22
Joel Holdsworth5-Sep-04 8:22 
GeneralRe: Validating Paths Pin
PJ Arends5-Sep-04 9:06
professionalPJ Arends5-Sep-04 9:06 
GeneralRe: Validating Paths Pin
Joel Holdsworth5-Sep-04 10:23
Joel Holdsworth5-Sep-04 10:23 
GeneralRe: Validating Paths Pin
PJ Arends5-Sep-04 10:32
professionalPJ Arends5-Sep-04 10:32 
GeneralRe: Validating Paths Pin
Joel Holdsworth5-Sep-04 11:37
Joel Holdsworth5-Sep-04 11:37 
GeneralRe: Validating Paths Pin
CKLam5-Sep-04 9:08
CKLam5-Sep-04 9:08 
GeneralRe: Validating Paths Pin
Ravi Bhavnani5-Sep-04 9:28
professionalRavi Bhavnani5-Sep-04 9:28 
GeneralRe: Validating Paths Pin
Michael Dunn5-Sep-04 15:15
sitebuilderMichael Dunn5-Sep-04 15:15 
GeneralOpenGL question Pin
alex.barylski5-Sep-04 8:19
alex.barylski5-Sep-04 8:19 
GeneralRe: OpenGL question Pin
Ryan Binns5-Sep-04 18:37
Ryan Binns5-Sep-04 18:37 
GeneralRe: OpenGL question Pin
alex.barylski6-Sep-04 9:35
alex.barylski6-Sep-04 9:35 
GeneralRe: OpenGL question Pin
Henry miller7-Sep-04 4:15
Henry miller7-Sep-04 4:15 
QuestionOnMouseWheel for horizontal scroll? Pin
CKLam5-Sep-04 7:50
CKLam5-Sep-04 7:50 
GeneralMultithreading problem in Win32 Pin
Dev5785-Sep-04 7:27
Dev5785-Sep-04 7:27 

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.