I mathematicaly drew a piano keyboard in OnPaint event. I want it to redraw
on resizing window but when I call the same algorithm on EVT_SIZE within the
OnSize function, nothing happens.
Can you please explain me how to properly handle resizing of a window ?.
Thanks
Haris
You should never call the drawing function directly. Invoke Refresh() in
your OnSize handler and the OS will repaint your window.