CSSetAlphaTransparency Function

Description

Sets the opacity alpha channel transparency percent value for the Consoul window.

Syntax

VB/A 32bits

Private Declare Function CSSetAlphaTransparency Lib "consoul_010205_32.dll" ( _
  ByVal hWnd As LongPtr, _
  ByVal bPercent As Byte _
) As Integer

VB/A 64bits

Private Declare PtrSafe Function CSSetAlphaTransparency Lib "consoul_010205_64.dll" ( _
  ByVal hWnd As LongPtr, _
  ByVal bPercent As Byte _
) As Integer

Return Value

The return value is meaningless.

Parameters

hWnd

The window handle (HWND) of the Consoul window, as returned by CSCreateLogWindow.

bPercent

Valid range is [0..100].

A value of 0 (zero) restores full opacity of the Consoul window.

Remarks

Windows version < 8 does not support color or alpha channel transparency for non top level windows, meaning that CSSetAlphaTransparency will have no effect on those OSes for Consoul windows created with an hwndParent <> 0 (zero) with CSCreateLogWindow.

Last updated: May 13 2022.