Code: Select all
GetToolBar()->SetToolNormalBitmap(ToolBar_Hex, SLPtoBitMap(50705, 0));
wxClientDC dc(this);
dc.DrawBitmap(SLPtoBitMap(50705, 1), 0, 0, true);
PS. I don't want to use wxGraphicsContext, since that would mean recompiling wxWidgets.
EDIT: wxStaticBitmap doesn't accept large enough images.
Some of my images are small enough, but only first call to SetBitmap centers the image. After that all images are drawn to upper left corner.