The following example reduces the current zoom factor by one half, and then repaints the image display.
void CImgEdit1Dlg::OnZoom()
{
// This would reduce the current zoom factor by one
// half and then repaint the image display.
ImgEdit1.SetZoom(ImgEdit1.GetZoom() / 2);
ImgEdit1.Refresh();
}