Scan for the edge of a bitmap to create a transparent region
Scans the edge of a bitmap and creates a polygon region. Use it to
create odd-shaped forms. It does not scan for "internal" transparent areas -
only the edge. The background color needs to be unique. Also shows how to
allow form dragging without a caption.
Uses the following API functions:
- CreatePolygonRgn
- DeleteObject
- GetPixel
- ReleaseCapture
- SendMessage
- SetPixel
- SetWindowRgn
Back to Code Samples
Copyright © 2000 by Matt E. Hart, All Rights Reserved Worldwide.
Nothing on this web site may be reproduced, in any form, without express written consent.