#pragma once #include typedef struct tagStructButton { int nID; CString sCaption; }structButton; class CMyFuncKeyToolBar : public CMFCToolBar { public: DECLARE_MESSAGE_MAP() afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); CButton m_buttons[100]; afx_msg void OnSize(UINT nType, int cx, int cy); };