Appendix A: Integrating the PlateLoc into third-party systems
PlateLoc User Guide
104
ControlPicture Type
IPictureDisp
Description
A read-only picture of the PlateLoc that can be used in the container’s
application.
Parameters
None
Visual C++ Example
/* the CPicture class will be imported into your project when the ActiveX is
installed */
CButton button;
// create a button
CPicture PlateLocPic;
// retrieve the picture
PlateLocPic = m_PlateLoc.GetControlPicture();
// paint the bitmap onto the button
button.SetBitmap( (HBITMAP) PlateLocPic.GetHandle());
Visual Basic Example
‘assume that there is a button named Command1 on the current form. You must
set the Style property of ‘Command1 to “Graphical”
Command1.Picture = PlateLoc1.ControlPicture