MFC Transparent CDialog Demo

Monday Dec 9th 2002 by Nic Wilson
Share:

Create a splash screen or skeleton application by using non-rectangular windows. The dialog is shaped by a supplied bitmap. The demo also demonstrates dragging the dialog by clicking anywhere on a visible portion, as well as timer events and using a button on the transparent dialog.

Environment: Visual C++ V6.0

This dialog is derived from CDialog. A bitmap is loaded from a file and a region created based on a transparent colour. The bitmap is then used to paint the dialog. This demo also demonstrates dragging the dialog by clicking anywhere on a visible portion of the dialog, timer events, and a button on the transparent dialog.

It is perfect to be used as a splash screen or similar application or as a skeleton application for non-rectangular windows that are shaped by a supplied bitmap.

Downloads

Download demo project - 87KB
Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved