Learning my way though C++ and WXWidgets
In a constructor (or anywhere) is it bad practise to paste in a bunch of code by using an include, so that I can keep the meat in a separate header file.???
cFrame::cFrame
(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style, const wxString& name)
: wxFrame(parent, id, title, pos, size, style, name) //list contructor override
{
#include "MenuBar1.h"
}
In a constructor (or anywhere) is it bad practise to paste in a bunch of code by using an include, so that I can keep the meat in a separate header file.???
cFrame::cFrame
(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style, const wxString& name)
: wxFrame(parent, id, title, pos, size, style, name) //list contructor override
{
#include "MenuBar1.h"
}
