Visit Gigasoft's Web Site
 ProEssentials v9 Help

Common Question 30

How do I programmatically Undo the zoom?


.NET Interface



OCX/VCL Interface

OCX users set PEactions = UNDO_ZOOM (19)

VCL users set PEactions := gUndoZoom


C/C++ Developers

You will need to call the SendMessage Windows function and send WM_COMMAND to the handle of the ProEssentials object.


You will be sending the menu id 53053 which signifies the object to undo the zoom. This is done as follows:


SendMessage(m_hObject, WM_COMMAND, (WPARAM) MAKELONG(53053, 0), 0L);