Use default window IDs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-04-07 21:26:34 +00:00
parent 102e2b26c0
commit baf1aa5dfd
2 changed files with 8 additions and 8 deletions

View File

@@ -30,7 +30,7 @@ DocStr(wxVisualAttributes,
struct wxVisualAttributes
{
%extend {
wxVisualAttributes() {}
wxVisualAttributes() { return new wxVisualAttributes; }
~wxVisualAttributes() {}
}
@@ -194,7 +194,7 @@ public:
RefDoc(wxWindow, ""); // turn it off for the ctors
DocCtorStr(
wxWindow(wxWindow* parent, const wxWindowID id,
wxWindow(wxWindow* parent, const wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
@@ -208,7 +208,7 @@ public:
DocDeclStr(
bool , Create(wxWindow* parent, const wxWindowID id,
bool , Create(wxWindow* parent, const wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
@@ -1010,11 +1010,11 @@ other application. To bind an event handler function to this hotkey
use EVT_HOTKEY with an id equal to hotkeyId. Returns True if the
hotkey was registered successfully.");
bool RegisterHotKey(int hotkeyId, int modifiers, int keycode) {
#if wxUSE_HOTKEY
%#if wxUSE_HOTKEY
return self->RegisterHotKey(hotkeyId, modifiers, keycode);
#else
%#else
return False;
#endif
%#endif
}