#include class Panel : public CAppDialog { private: CButton m_BtnSymbol1, m_BtnBymbol2; public: Panel(void); ~Panel(void) {}; virtual bool Create(const long chart, const string name, const int subwin, const int x1, const int y1); private: virtual bool ButtonCreate (CButton& Btn, int X1, int Y1, int X2, int Y2, string Name, string Text); //+--------+ //| Button | //+--------+ bool Panel::ButtonCreate(CButton &Btn, int X1, int Y1, int X2, int Y2, string Name, string Text) { if (!Btn.Create(m_chart_id, m_name + Name, m_subwin, X1, Y1, X2, Y2)) return(false); if (!Add(Btn)) return(false); if (!Btn.Text(Text)) return(false); return(true); } bool Panel::CreateObjects() { if (!ButtonCreate(m_BtnSymbols1, 1 ,1 , 10, 10 , "m_BtnSymbol1", "Symbol1")) return(false); if (!ButtonCreate(m_BtnSymbols1, 15 ,15 25, 25 , "m_BtnSymbol1", "Symbol1")) return(false); //There is problem //Cteated one dimension array with two index => OK CButton button[2]; //I need feel this array, but There is problem Log:'=' - not allowed for objects with protected members or inheritance button[1] = m_BtnSymbol2; button[2] = m_BtnSymbol2; InitObjects(); return(true); }