X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..16630eb7e3ef05fa487b67188df12d10e66a5beb:/interface/wx/fs_mem.h diff --git a/interface/wx/fs_mem.h b/interface/wx/fs_mem.h index bef7f52f8d..421c0b2e41 100644 --- a/interface/wx/fs_mem.h +++ b/interface/wx/fs_mem.h @@ -3,18 +3,17 @@ // Purpose: interface of wxMemoryFSHandler // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @class wxMemoryFSHandler - @wxheader{fs_mem.h} This wxFileSystem handler can store arbitrary data in memory stream and make them accessible via an URL. It is particularly suitable for storing bitmaps from resources or included XPM - files so that they can be used with wxHTML. + files so that they can be used with wxHTML or wxWebView. Filenames are prefixed with @c "memory:", e.g. @c "memory:myfile.html". @@ -27,24 +26,30 @@ void MyFrame::OnAbout(wxCommandEvent&) { - wxBusyCursor bcur; wxFileSystem::AddHandler(new wxMemoryFSHandler); - wxMemoryFSHandler::AddFile("logo.pcx", wxBITMAP(logo), wxBITMAP_TYPE_PCX); + wxMemoryFSHandler::AddFile("logo.png", wxBITMAP(logo), wxBITMAP_TYPE_PNG); wxMemoryFSHandler::AddFile("about.htm", "
About: " - ""); + "