Hi,
One more beginners' question. How can I paint a bitmap on a panel or
frame?
I have the following set of code:
void MyFrame::DisplayImageOnPanel()
{
wxBitmap* bmp = new wxBitmap(_T("test"),wxBITMAP_TYPE_BMP_RESOURCE);
wxClientDC dc(m_panel);
PrepareDC(dc);
this->PrepareDC(dc);
dc.DrawBitmap(*bmp, 0, 0);
}
This function is called from;