Controls without handles-controls not found by spy ++

Source: Internet
Author: User

Yes, there is no handle
Lightweight controls are sometimes called "windowless controls". They differ significantly from conventional controls in that they do not have window handles (hwnd attribute ). Therefore, they use less system resources than Internet applications.ProgramDistributed applications, and other applications that are easily constrained by system resources. Common lightweight controls include label controls and Image

The lightweight controls of the image are not Windows controls!
It is drawn when VB receives the wm_paint message.
This is why the lightweight control cannot be placed on the Standard Control (the background layer is at the end), the label, image ...... Message cause (activeskin intercepts and processes the wm_paint message)

Lightweight controls

This article contains information about lightweight or windowless controls with Visual Basic 6.0. This article also describes lightweight controls, explains their advantages and disadvantages, and describes how to install lightweight controls in Visual Basic projects.
Back to Top
More information is sometimes called Window-free controls. Lightweight controls are similar to conventional controls. They do not have window handles and are included in Visual Basic. Since lightweight controls do not have window handles, these controls use less system resources... simple controls, sometimes called windowless controls, are similar to conventional controls because they do not have window handles and are attached to Visual Basic. Since lightweight controls do not have window handles, these controls use less system resources. Lightweight controls are a limiting factor for project system resources, such as Internet applications and distributed applications.

Lightweight controls with transparent backstyle attributes are truly transparent. The general control may be displayed as transparent. However, the control is still processing Windows messages in the transparent background area. When a lightweight control has a transparent background, the container stores the actual process in lightweight control in Windows Mail instead of lightweight controls. Since lightweight controls are truly transparent, they can be any shape.

Has the disadvantages of lightweight controls. A lightweight control container can only contain other lightweight controls. If the regular expression is used to place the control in a lightweight control container, the container restores the General window control container. Because lightweight controls use the resources of the parent window, regular controls always display the front of a lightweight control.

When Visual Basic runs in the toolbox, the following controls are not lightweight:
Image Control
Tag Control
Line Control
Shape Control
In addition to these lightweight controls, the following components are included in Visual Basic 6.0 with mswless. ocx:
Wlcheck Control
Wlcombo Control
Wlcommand Control
Wlframe Control
Wlhscroll Control
Wlvscroll Control
Wllist Control
Wloption Control
Wltext Control
To use these controls in a visual basic program, follow these steps:
Register a component file without a window in the system registry.
In your system, you can copy component files and help files to the corresponding directory.
Add the ActiveX control to the Visual BASIC program.
Back to Top
How to register a component file without a window
Search for the registration file, mswless. Reg, and Visual Basic to install the disk. The file is located in the directory on the common \ tools \ VB \ winless Disk 1. Note: The windowless control is located on the msdn CD from January 1, August 19: disk3 \ common \ tools \ VB \ winless.
Double-click mswless. Reg. When a component file without a window is successfully registered, the following registry editor dialog box is displayed:
Information in common \ tools \ VB \ winless \ mswless. Reg has been successfully entered into the registry.
You have registered a component file without a window. The next section shows how to copy appropriate windowless components and help files to your computer.
Back to Top
How to copy component files without windows
Search for the files on the following Visual Basic installation disk. These files are stored in the common \ tools \ VB \ winless directory on disk 1.
Filename description
------------------------------------------------------------------------
Ltwtct98.chi help file on windowless controls.
Ltwtct98.chm help file on windowless controls.
Mswless. ocx windowless component file with the windowless ActiveX
Controls.

Copy the two help files to the local Windows \ Help directory.
Copy the windowless component File mswless. ocx to the local WINDOWS \ SYSTEM directory. Only all component files that require no window are copied. The next section shows how to add a windowless control to the Visual BASIC program.
Back to Top
How to add a widget to your project
Start a new project in Visual Basic.
From the project menu, click components. Component dialog box.
Select the Microsoft windowless Control 6.0 check box from the control tab.
Click OK to close the component dialog box. All windowless controls appear on the toolbar.
Back to Top

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.