Restored the old Dialog Editor files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -653,7 +653,7 @@ wxItemResource *wxResourceManager::FindResourceForWindow(wxWindow *win)
|
||||
wxWindow *w = (wxWindow *)node->Data();
|
||||
if (w == win)
|
||||
{
|
||||
return (wxItemResource *)node->key.integer;
|
||||
return (wxItemResource *)node->GetKeyInteger();
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
@@ -876,7 +876,11 @@ void wxResourceManager::AddItemsRecursively(long parent, wxItemResource *resourc
|
||||
else
|
||||
imageId = 3;
|
||||
|
||||
long id = m_editorResourceTree->AppendItem(parent, theString, imageId );
|
||||
long id = m_editorResourceTree->InsertItem(parent, theString
|
||||
#ifdef __WXMSW__
|
||||
, imageId
|
||||
#endif
|
||||
);
|
||||
|
||||
m_editorResourceTree->SetItemData(id, new wxResourceTreeData(resource));
|
||||
|
||||
|
Reference in New Issue
Block a user