June 5th, 2009, 06:23 AM
MFC: CSplitterWnd, runtime class
I have the following problem/question:
Let's say I have a class CMyView derived from CView whose constructor can take parameters which influence the view's initial appearance (e.g. an RGB value to set the background color).
Now I want to use CSplitterWnd and create TWO views with CMyView as the runtime class. The two views are supposed to be initialized with different parameters though and therefore have a different initial appearance.
Since I can only pass the runtime class to CSplitterWnd::CreateView how is it possible to influence the construction of the view used with CSplitterWnd?
Thanks in advance!
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.