Transparent Splash Window | CodeGuru

Transparent Splash Window

Environment: VC6 Windows98/NT/2000 Do you want to cool splash window?. The general splash window is not good for your app?? This sample source is for you. My semi-transparent splash window use ‘AlphaBlend’ function. When I found this function, I was so surprised!! Here is ‘AlphaBlend’ function’s feature. BOOL AlphaBlend( HDC hdcDest, int nXOriginDest, int nYOriginDest, […]

Written By
CodeGuru Staff
CodeGuru Staff
Jan 30, 2000
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Environment: VC6 Windows98/NT/2000

Do you want to cool splash window?. The general splash window is not good for your app??
This sample source is for you.

My semi-transparent splash window use ‘AlphaBlend’ function.
When I found this function, I was so surprised!!

Here is ‘AlphaBlend’ function’s feature.

BOOL AlphaBlend( HDC hdcDest,
  int nXOriginDest,
  int nYOriginDest,
  int nWidthDest,
  int nHeightDest,
  HDC hdcSrc,
  int nXOriginSrc,
  int nYOriginSrc,
  int nWidthSrc,
  int nHeightSrc,
  BLENDFUNCTION blendFunction
);

The important parameter is last one,BLENDFUNCTION.

typedef struct _BLENDFUNCTION {
    BYTE     BlendOp;
    BYTE     BlendFlags;
    BYTE     SourceConstantAlpha;
    BYTE     AlphaFormat;
}BLENDFUNCTION, *PBLENDFUNCTION, *LPBLENDFUNCTION;

We use ‘SourceConstantAlpha’ value.
You can set this value between 0(transparent) and 255(semi-transparent).

Downloads

Download demo project – 47 Kb

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.