SAMPLE: VB6WLC~1.EXE Windowless Controls DemonstrationID: Q189596
|
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.
The following file is available for download from the Microsoft Software
Library:
~ vb6wlc~1.exe
For more information about downloading files from the Microsoft Software
Library, please see the following article in the Microsoft Knowledge Base:
Q119591 : How to Obtain Microsoft Support Files from Online Services
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.
mswless.reg
mswless.ocx
RegSvr32 C:\Windows\System\mswless.ocx
For more information about lightweight controls in Visual Basic, please see
the following articles in the Microsoft Knowledge Base:
Q184687 : INFO: Lightweight Controls in Visual Basic 6.0
Q184645 : HOWTO: Create Lightweight Controls with Visual Basic 6.0
Additional query words:
windowless kbDSupport kbVBp600 kbCtrl kbOLE kbReadme kbRegistry kbdss kbVBp
kbsample
Keywords :
Version :
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: June 8, 1999