A class inherited from a class with fixed data
I'm developing a GUI for directx in C++. I've got a class for my controls:
class cControl;
a class for my windows:
class cWindow : public cControl
and what I want to do is write a class for a special kind of window (color
picker).
class cColorPicker : public cWindow
The constructor of the colorpicker class calls only cControl functions. To
set things up in the gui routine for every window I use this code this:
for each( cWindow* pWindow in m_vWindows ) // stuff
What I notice debugging is that position, width, height and every thing I
set up in colorpicker constructor results null.
No comments:
Post a Comment