X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f485492a1eef7a413945b331bc9bdb26cceaf0cd..f2ab8671bf5433eee5862bfa723feb54e4d63e9f:/contrib/src/xml/xmlres.cpp diff --git a/contrib/src/xml/xmlres.cpp b/contrib/src/xml/xmlres.cpp index 04ca779d38..e74d13b7ee 100644 --- a/contrib/src/xml/xmlres.cpp +++ b/contrib/src/xml/xmlres.cpp @@ -175,7 +175,10 @@ bool wxXmlResource::LoadPanel(wxPanel *panel, wxWindow *parent, const wxString& return CreateResFromNode(FindResource(name, wxT("wxPanel")), parent, panel) != NULL; } - +bool wxXmlResource::LoadFrame(wxFrame* frame, wxWindow *parent, const wxString& name) +{ + return CreateResFromNode(FindResource(name, wxT("wxFrame")), parent, frame) != NULL; +} wxBitmap wxXmlResource::LoadBitmap(const wxString& name) { @@ -873,10 +876,11 @@ struct XMLID_record }; static XMLID_record *XMLID_Records[XMLID_TABLE_SIZE] = {NULL}; -static int XMLID_LastID = wxID_HIGHEST; /*static*/ int wxXmlResource::GetXMLID(const char *str_id) { + static int XMLID_LastID = wxID_HIGHEST; + int index = 0; for (const char *c = str_id; *c != '\0'; c++) index += (int)*c;