Re: Multiple Views: how to open both views at startup or on new document




Manuel M wrote:

The problem is that I don't know how to get the pointer to the
active document (pDoc). I've browsed through the member
functions of CDocument and CWinApp, and I can't find one
that gives me said pointer. How should I do that?

Try "this" for this document.

.



Relevant Pages

  • Re: Translation-Time Type Information
    ... there are three points of undefined behaviour in the ... point within the same array object. ... functions return the 'value' member of the pointed-to-union, ... pointer is equal to the alignment requirement for that function ...
    (comp.lang.c)
  • Re: Casting of pointer to member functions
    ... cast it back before any usage. ... The example above will compile only if /ymg compiler switch ... the bits that pointer is ... calling a member function through such pointer is ...
    (microsoft.public.vc.language)
  • Re: Problem bei for Anweisung
    ... wenn man ein char-Feld hat. ... — if it has pointer type, it is initialized to a null pointer; ... if it is an aggregate, every member is initialized ... according to these rules; ...
    (de.comp.lang.c)
  • Re: Class members, pointers or not?
    ... > Is it best to declare class member objects as pointers or not pointers? ... using pointer members (and reference members) ...
    (comp.lang.cpp)
  • Re: request for member in something not a structure or union
    ... to be either a structure or a pointer to structure. ... accessing the same member via a pointer to the structure as two ... int csr; ... The compiler did not bother to see whether p->next or t.next ...
    (comp.lang.c)