I'm still not sure what you are trying to do.
I´m trying to separate code a bit.
Atm i have like lets say 4 picture boxes
and 5 buttons.
Each button change one or more pictures.
Picture shall not be erased,
the change shall be added.
My Code looks awfull for now,
the buttons only set some vars
and all drawing for all pictures
is handled in 1 large WM_PAINT part.
In VB and Delphi it works different.
If i write "button1_onclick .. add a line to graphic"
then its a separate function "button1_onclick"
and if i have to find a bug
i can simply click that function.
(no WM_PAINT involved)
Also,
my code didn´t involve any bitmap for now.
Everything was drawn directly to picture controls.
(it is flickerfree but the code looks awfull)
My only question now is,
if i use Dialog-Editor and put lets say 5 picture controls,
can i change (subclass) them afterwards,
or does subclassing mean i have to put controls by code into dialog ?
Thank you
I attached demo to show you what i meant.