WM_SIZE tweaks

This commit is contained in:
David Rose 2004-01-08 20:46:00 +00:00
parent 11ed7fc99b
commit 1643f77bc7
2 changed files with 5 additions and 5 deletions

View File

@ -202,6 +202,11 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
close();
break;
case WM_SIZE:
move_label_stack();
InvalidateRect(hwnd, NULL, FALSE);
break;
case WM_PAINT:
{
PAINTSTRUCT ps;
@ -227,7 +232,6 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
// Oops, we need to change the bitmap (and graph) size.
changed_graph_size(graph_xsize, graph_ysize);
move_graph_window(rect.left, rect.top, graph_xsize, graph_ysize);
move_label_stack();
force_redraw();
}
}

View File

@ -338,10 +338,6 @@ static_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
LONG WinStatsStripChart::
window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
switch (msg) {
case WM_SIZE:
InvalidateRect(hwnd, NULL, FALSE);
break;
default:
break;
}