Excuse me for a lot of posts - I am Rust newbie and am fascinated new language.
I have two problems with this project: 1)Rust 2)Winapi
In object oriented languages usually main window or application was owner of list of children, all derived from widget. Owner call widget.Paint() which was virtual and owner doesn’t know about specified class. In rust is anything similar to events, virtual methods etc? Traits would be helping?
Is possible draw on canvas only inside calling WM_PAINT in window_proc (this procedure is one for application or one for each window?) If I want draw on other event, for example for button click, would be not between BeginPaint-EndPaint (obtain hdc). How do it?
For example in Pascal VCL controls draws in Paint but applications in any place - OnCreate, OnClick etc.