Click to See Complete Forum and Search --> : CRuntimeClass ???


Kobe
October 20th, 1999, 11:34 AM
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

mdangers
October 24th, 1999, 09:00 AM
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.