|
-
October 20th, 1999, 11:34 AM
#1
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
-
October 24th, 1999, 09:00 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|