Re: toolbars in mfc dialog

djcapslock
06-01-2005, 07:32 AM
Hi,
I am using a mappoint active x in a MFC dialog box. I have got it to work, but when i resize the control occassionally the toolbar does not refresh correctly, some of the buttons becoming blank. Does anybody no of a solution to this problem.
Thanks
David

Wilfried
06-01-2005, 02:25 PM
Hi David,

I never had this problem, but you can redraw it by calling:
MP.Invalidate();
or:
MP.Refresh();

BTW: what is an MFC dialog box ?

djcapslock
06-04-2005, 05:39 AM
Hi,
MFC is a form of c++ for windows. I found in the end that redrawWindow with RDW_ALLCHILDREN as flag worked best. Infact it seems this was the only way to get the toolbars and everything to refresh.

Dave

 
Web mp2kmag.com
mapforums.com