#include "wx/button.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
+#include "wx/frame.h"
#include "wx/menuitem.h"
#include "wx/log.h"
void wxWindow::SetDropTarget(wxDropTarget *pDropTarget)
{
if ( m_pDropTarget != 0 ) {
- m_pDropTarget->Revoke(m_hWnd);
delete m_pDropTarget;
}
m_pDropTarget = pDropTarget;
if ( m_pDropTarget != 0 )
- m_pDropTarget->Register(m_hWnd);
+ {
+ // TODO
+ }
}
#endif
void wxWindow::SetScrollPos(int orient, int pos, bool refresh)
{
// TODO
- return 0;
+ return;
}
// New function that will replace some of the above.
void wxWindow::ScrollWindow(int dx, int dy, const wxRectangle *rect)
{
// TODO
- return 0;
+ return;
}
void wxWindow::SetFont(const wxFont& font)
}
}
-// If nothing defined for this, try the parent.
-// E.g. we may be a button loaded from a resource, with no callback function
-// defined.
-void wxWindow::OnCommand(wxWindow& win, wxCommandEvent& event)
-{
- if (GetEventHandler()->ProcessEvent(event) )
- return;
- if (m_windowParent)
- m_windowParent->GetEventHandler()->OnCommand(win, event);
-}
-
void wxWindow::SetConstraints(wxLayoutConstraints *c)
{
if (m_constraints)
return (m_updateRegion.Contains(rect) != wxOutRegion);
}
+/*
+ * Allocates control IDs
+ */
+
+int wxWindow::NewControlId()
+{
+ static int s_controlId = 0;
+ s_controlId ++;
+ return s_controlId;
+}
+