Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

redrawing client area

2 views
Skip to first unread message

Haris Bogdanovi�

unread,
Nov 8, 2009, 7:23:41 PM11/8/09
to
Hi.

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


Preben Friis

unread,
Nov 9, 2009, 2:03:59 AM11/9/09
to
"Haris Bogdanovi�" <fbogd...@xnet.hr> wrote in message
news:hd7nef$7m2$1...@gregory.bnet.hr...

You should never call the drawing function directly. Invoke Refresh() in
your OnSize handler and the OS will repaint your window.

0 new messages