Description
Short story: Create layered windows, to make forms translucent or irregularly shaped, using drop-in class.
Longer description from old site: click here.
To be edited...
Published
This sample, or the one from which it originally derived, was published (or at least
peripherally mentioned) in the following article(s):
APIs Usage
This sample uses the following API calls:
| Module |
Library |
Function |
| CTranslucent.cls |
kernel32 user32
|
GetVersionEx GetSysColor GetWindowLong SetLayeredWindowAttributes SetWindowLong UpdateLayeredWindow |
| FTrans.frm |
gdi32
user32
|
BitBlt GetPixel GetCursorPos GetDC ReleaseDC ScreenToClient WindowFromPoint |
| FWindowPicker.frm |
user32
|
GetCursorPos GetParent IsWindowVisible ReleaseCapture SetCapture SetForegroundWindow WindowFromPoint |
| MHookMe.bas |
kernel32 user32
|
RtlMoveMemory CallWindowProc GetProp GetWindowLong SetProp SetWindowLong |
| MTransWnd.bas |
kernel32 user32
|
GetVersionEx GetParent GetWindowLong IsWindowVisible SetLayeredWindowAttributes SetWindowLong |
| WinRgn.Frm |
gdi32
user32
|
CreatePolygonRgn CreateSolidBrush DeleteObject FillRgn Polyline GetCursorPos GetSystemMetrics GetWindowLong ReleaseCapture SendMessage SetWindowLong SetWindowPos |
Don't see what you're looking for? Here's a
complete API cross-reference.
Download
|
|
Please, enjoy and learn from this sample. Include its code within your own projects, if you wish. But, in order to insure only the most recent code is available to all, I ask that you
don't share the sample by any form of mass distribution.
Download Translucent.zip,
40Kb, Last Updated: Monday, 10 July 2000
|
See Also
The following resources may also be of interest:
- HookMe - Native subclassing technique for VB5/6. Extremely clean.
- WinRgn - Create an irregularly shaped form; drag a captionless form.
- WndPick - Capture cursor feedback outside your own window, like Spy++ does, to highlight and pick any window on the system.

|