replace wxHashTable with a type safe hash map of Window to wxWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#define _WX_PRIVATE_H_
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/hashmap.h"
|
||||
#include "wx/utils.h"
|
||||
#if defined( __cplusplus ) && defined( __VMS )
|
||||
#pragma message disable nosimpint
|
||||
@@ -52,6 +53,12 @@ class wxWindow;
|
||||
// corresponding to the window for this widget
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
WX_DECLARE_HASH_MAP(Window, wxWindow *, wxIntegerHash, wxIntegerEqual, wxWindowHash);
|
||||
|
||||
// these hashes are defined in app.cpp
|
||||
extern wxWindowHash *wxWidgetHashTable;
|
||||
extern wxWindowHash *wxClientWidgetHashTable;
|
||||
|
||||
extern void wxDeleteWindowFromTable(Window w);
|
||||
extern wxWindow *wxGetWindowFromTable(Window w);
|
||||
extern bool wxAddWindowToTable(Window w, wxWindow *win);
|
||||
|
Reference in New Issue
Block a user