wxMenu *menu = new wxMenu;
menu->Append(wxID_SAVE);
menu->AppendSeparator();
- m_pClearBgMenu = menu->AppendCheckItem(ID_PAINT_BG, _T("&Paint background"));
+ menu->AppendCheckItem(ID_PAINT_BG, _T("&Paint background"),
+ "Uncheck this for transparent images");
menu->AppendSeparator();
menu->Append(ID_RESIZE, _T("&Fit to window\tCtrl-F"));
menu->AppendSeparator();
mbar->Append(menu, _T("&Image"));
SetMenuBar(mbar);
+ mbar->Check(ID_PAINT_BG, true);
+
CreateStatusBar(2);
if ( numImages != 1 )
SetStatusText(wxString::Format("%d images", numImages), 1);
{
wxPaintDC dc(this);
- if (m_pClearBgMenu->IsChecked())
+ if ( GetMenuBar()->IsChecked(ID_PAINT_BG) )
ClearBackground();
const wxSize size = GetClientSize();
}
wxBitmap m_bitmap;
- wxMenuItem* m_pClearBgMenu;
DECLARE_EVENT_TABLE()
};