BEGIN_EVENT_TABLE(wxWindow, wxEvtHandler)
EVT_CHAR(wxWindow::OnChar)
- EVT_SIZE(wxWindow::OnSize)
EVT_ERASE_BACKGROUND(wxWindow::OnEraseBackground)
EVT_SYS_COLOUR_CHANGED(wxWindow::OnSysColourChanged)
EVT_INIT_DIALOG(wxWindow::OnInitDialog)
::ScrollWindow((HWND) GetHWND(), dx, dy, NULL, NULL);
}
-void wxWindow::OnSize(wxSizeEvent& event)
-{
- Default();
-#if USE_CONSTRAINTS
- if (GetAutoLayout())
- Layout();
-#endif
-}
-
/*
void wxWindow::CalcScrolledPosition(int x, int y, int *xx, int *yy) const
{
if (vert_units)
y_pages = (int)(v_height/vert_units) - y_page;
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
int y = 0;
#else
int y = y_page-1;