ImageControls 3.1 Application NoteImageControls Toolkit 3.1 is the latest release of the Kofax ImageControls Toolkit product. |
To access the following Web pages for this release, please click on the desired page's link. Application Notes - Error Codes - Frequently Asked Questions - Revision Levels - Supported Configurations |
Accessing Standard VB Properties in Visual C++How do you access the Height and Width properties of the KView control for the purpose of resizing the control at runtime? When you add a control to a VC++ project, a couple of classes are created and displayed in the Class View. If you use the ClassWizard, these will be _DKView and _DKViewEvents. If you add the control from the Component Gallery, the CKView and COleFont classes will be created. Using the ClassWizard is the preferred method since it will automatically create the event handler class. Now, let's say you want to set the size of the KView window by setting the Height and Width properties. However, when you open the _DKView or CKView class there are no SetHeight or SetWidth functions. Since the KView is derived from the CWnd base class, it inherits all the functionality of the CWnd. The CWnd class has a function called MoveWindow() that can easily be used to both position and size the KView. VCDemo implements this in the CVCKView::Resize() function as follows:
The MoveWindow() function can be called in one of two ways:
Parameters
|
