-
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
-
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.