I have a dialog box which will display a map on reading from the file. I have used the OnPaint() method which does the drawing.
The map is drawn only when the dialog box is created. I want the map to be redrawn when the user zoom in or zoom out. Though it calls the OnPaint() method again, but there is no effect on the screen. I do not know what is the reason behind it. I have used PostMessage(WM_PAINT) to redraw the dialog box.
Can anyone suggest the reason and what way i can redraw the dialog box.
Thanks in advance.
raochetan
The map is drawn only when the dialog box is created. I want the map to be redrawn when the user zoom in or zoom out. Though it calls the OnPaint() method again, but there is no effect on the screen. I do not know what is the reason behind it. I have used PostMessage(WM_PAINT) to redraw the dialog box.
Can anyone suggest the reason and what way i can redraw the dialog box.
Thanks in advance.
raochetan