How to Use a Linked Paintbrush Object with OLECLIEN.VBX (86776)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Professional Toolkit for Microsoft Visual Basic programming system for Windows
This article was previously published under Q86776 SUMMARY
The following example program demonstrates how to use the Visual Basic
OLE Client (OLECLIEN.VBX) custom control to create a linked Paintbrush
object.
The following OLEClient property settings are required to create a
Paintbrush Object Linking and Embedding (OLE) object:
Class - "PBrush"
SourceDoc - The full path of a bitmap file to use (for example,
c:\windows\arches.bmp).
SourceItem - A string containing the pixel coordinates of the part
of the bitmap to display. These coordinates should be
in the format "x1 y1 x2 y2".
This information applies to the OLECLIEN.VBX custom control in Visual
Basic.
Note that Windows version 3.0 Paintbrush does not support OLE; you must
have Windows version 3.1 in order to use this example.
REFERENCES
"Microsoft Professional Toolkit for Visual Basic: Custom Control
Reference" Pages 196-232
Modification Type: | Major | Last Reviewed: | 10/30/2003 |
---|
Keywords: | KB86776 |
---|
|