smaryus
2007-03-15 12:15:00 UTC
If I make an application in doc/view architecture and i have only one CView
derived class (CMyView).
The menu to create new child windows is like this:
Create window
Bkgrnd Black
Bkgrnd Yellow
Bkgrnd red
......
When it's selected "Bkgrnd red" the new created CMyView will have the
background red, for black will be black an so on.
I have to create a class from CView for every color, or how can be send to
CMyView a parameter and based on his value when the window is created to set
the background color?
derived class (CMyView).
The menu to create new child windows is like this:
Create window
Bkgrnd Black
Bkgrnd Yellow
Bkgrnd red
......
When it's selected "Bkgrnd red" the new created CMyView will have the
background red, for black will be black an so on.
I have to create a class from CView for every color, or how can be send to
CMyView a parameter and based on his value when the window is created to set
the background color?