redraw on resize

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@225 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-03-22 13:07:17 +00:00
parent 2a2471fda7
commit 2c2bf88a40
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -171,6 +171,10 @@ void GalleryList::OnDraw(DC& dc) {
}
}
void GalleryList::onSize(wxSizeEvent&) {
update();
}
void GalleryList::sendEvent(WXTYPE type) {
wxCommandEvent ev(type, GetId());
ProcessEvent(ev);
@@ -183,4 +187,5 @@ BEGIN_EVENT_TABLE(GalleryList, wxScrolledWindow)
EVT_LEFT_DCLICK (GalleryList::onLeftDClick)
EVT_CHAR (GalleryList::onChar)
EVT_PAINT (GalleryList::onPaint)
EVT_SIZE (GalleryList::onSize)
END_EVENT_TABLE ()
+1
View File
@@ -59,6 +59,7 @@ class GalleryList : public wxScrolledWindow {
void onLeftDClick(wxMouseEvent& ev);
void onChar(wxKeyEvent& ev);
void onPaint(wxPaintEvent&);
void onSize(wxSizeEvent&);
void OnDraw(DC& dc);
/// Find the item corresponding to the given location