Posted on 2003-03-20
In my FormView-App I used a PictureBox(Rectangle), where I wanna draw. I tried to realize
that in this way:
CWnd *pWnd = GetDlgItem(IDC_PLACE);
CDC *hdc = pWnd->GetDC();
In OnPaint(), i call OnDraw, and in the Doc i call UpdateAllViews when necassary!!
But there is one Problem on Resizing, the content disapears, but it goes in to the OnDraw
function, I checked that with a static int var in OnDraw, but i guess a other event is called and
this lets the PictureBox empty.
I guess it is the onSize event!! But how can I handle that?????
Same happens when i shove the application out of the screen only the drawin was inside the
screen is visible afer shoving the app back!!!