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

@@ -114,7 +114,7 @@ public:
RefDoc(wxSplitterWindow, ""); // turn it off for the ctors RefDoc(wxSplitterWindow, ""); // turn it off for the ctors
DocCtorStr( DocCtorStr(
wxSplitterWindow(wxWindow* parent, wxWindowID id, wxSplitterWindow(wxWindow* parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style=wxSP_3D, long style=wxSP_3D,
@@ -128,7 +128,7 @@ public:
DocDeclStr( DocDeclStr(
bool , Create(wxWindow* parent, wxWindowID id, bool , Create(wxWindow* parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style=wxSP_3D, long style=wxSP_3D,

View File

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