Article ID: 189596 - Last Review: August 10, 2004 - Revision: 3.2 SAMPLE: VB6WLCTL.EXE Windowless Controls DemonstrationThis article was previously published under Q189596 On This PageSUMMARY Visual Basic 6.0 introduces the capability of creating
"Windowless" controls. A Windowless control, also known as a "lightweight"
control, is a control that does not have a WndProc function for message
handling. These lightweight controls require fewer resources than normal
controls, and allow for development of transparent controls. This sample
demonstrates how to create windowless controls in Visual Basic 6.0.
MORE INFORMATIONThe
following file is available for download from the Microsoft Download
Center: VB6WLCTL.exe
(http://download.microsoft.com/download/vb60pro/2/2/win98/en-us/vb6wlctl.exe)
Release Date: June 16,
2000For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base: 119591
(http://support.microsoft.com/kb/119591/EN-US/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
Below is the content of the Readme.txt for this sample. DescriptionVisual Basic 6.0 provides the capability of building Windowless controls, also known as lightweight controls. A new property of the UserControl, Windowless, enables this feature. Setting the Windowless property to True will make the UserControl Windowless, a control which sends and receives messages through OLE rather than the regular messaging queues that Windows uses.A Windowless control behaves the same as the normal UserControls with the following exceptions:
Summary Of Sample ControlsFour Windowless Controls are included in the sample to show different Functionality:
TestControl1 - A Windowless control that acts and handles events like a
normal control.
TestControl2 - Allows events to bypass it and be handled by the controls
underneath it.
TestControl3 - Demonstrates "HitTesting" to see where the user has clicked
within the Windowless control's region on the form. The
control acts "transparently" (events being passed to the
Form underneath) unless the CommandButton sited on it is
clicked. Then it handles that Event normally.
TestControl4 - This control demonstrates how to determine what areas of a
control are transparent by using the Picture, MaskPicture,
and MaskColor properties, and where events can be handled.
To StartBefore loading this sample into Visual Basic 6.0, the following steps need to be taken:
REFERENCES For more information about lightweight controls in Visual
Basic, please see the following articles in the Microsoft Knowledge Base: | Article Translations
|
Back to the top
