CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Posts
    167

    CRuntimeClass ???

    Hello,
    I create Splitter and also create view
    virtual BOOL CreateView( int row, int col, CRuntimeClass* pViewClass, SIZE sizeInit, CCreateContext* pContext );

    but I don't understand about CRuntimeClass
    Why I must use it ??? and How to use it for this
    case ???

    Thank you very much


  2. #2
    Join Date
    Oct 1999
    Location
    Germany
    Posts
    238

    Re: CRuntimeClass ???

    Hi !

    for your call to CreateView you need to use the
    RUNTIME_CLASS-macro to supply the CRuntimeClass*-value:
    like: RUNTIME_CLASS(yourviewclass).
    This macro returns a pointer to the CRuntimeClass associated
    with your viewclass.
    CRuntimeClass is used to obtain the classname ( and other stuff ) of objects at runtime.

    Hope this helps,

    Matthias.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured