Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Experienced Solver
Experienced Solver
Posts: 72
Joined: Mon Nov 08, 2004 3:36 pm


Post by romeo9423 » Thu Mar 08, 2007 11:27 am


how can I create a toolbar on wince.When I try this :

m_toolbar=CreateToolBar(wxNO_BORDER | wxTB_HORIZONTAL,4095);

m_toolbar->AddTool(MENU_NEW, wxString( wxT("Nouveau") ), wxNullBitmap );
m_toolbar->AddTool(MENU_OPEN, wxString( wxT("Open") ), wxNullBitmap );
m_toolbar->AddTool(MENU_SAVE, wxString( wxT("Save") ), wxNullBitmap );


but I get a wxDC assert about bitmaps.
The thing is I don't want bitmap in my toolbar, I juste want a norma menu

Site Admin
Site Admin
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE » Thu Mar 08, 2007 11:44 am

You could try with AddTool() instead and add some wxButtons.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda

Post Reply