I have been unable to successfully add an image handler. I'm sure it isn't that difficult, but I just cant seem to get it to work.
This is the code I've been trying to compile:
bool MainApp::OnInit()
{
wxImage Pic_Splash;
Pic_Splash.AddHandler(wxGIFHandler);
if (Pic_Splash.LoadFile("bitmaps\\splash.gif", wxBITMAP_TYPE_GIF)) {
new wxSplashScreen(Pic_Splash,
wxSPLASH_CENTRE_ON_SCREEN|wxSPLASH_TIMEOUT,
6000, NULL, -1, wxDefaultPosition, wxDefaultSize,
wxSIMPLE_BORDER|wxSTAY_ON_TOP);
}
MainFrame *MainWin = new MainFrame("BlakkCount", wxPoint(1, 1),
wxSize(290, 190)); MainWin->Show(TRUE); SetTopWindow(MainWin);
return TRUE;
}
Thanks in advance
|