Bonjour à tous,
Bon j'ai un problème pour ajouter une toolbar à ma frame. Je poste ici sinon je vais casser quelquechose #!\-# !!
Bon en ce qui concerne la toolbar voila mon code :
et les headers qui s'y rapportent :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 wxBitmap *image = new wxBitmap("C:/test.bmp", wxBITMAP_TYPE_BMP); wxToolBar *toolBar = new wxToolBar; toolBar->AddTool(1, _T("titre"), image, _T("aide"), wxITEM_NORMAL); SetToolBar(toolBar);
#include <wx/toolbar.h>
#include <wx/bitmap.h>
Et voila ce que le compilateur me renvoi :
no matching function for call to `wxToolBar::AddTool(int, const char[6], wxBitmap*&, const char[5], wxItemKind)'
candidates are: ...
Doc. :
http://www.wxwidgets.org/manuals/2.4.2/wx397.htm#wxtoolbaraddcontrol
Je suis un débutant en c++ mais avant d'arriver à un niveau juste correct j'aurais perdu tout mes cheveux grrrrrrrr
Merci pour votre aide.
Partager