Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Using GetWindowLong API to retrieve the Alpha Byte value


Message #1 by "Padgett Rowell" <padgett@i...> on Tue, 11 Sep 2001 16:07:43 +0800

Hello,

I have seen numerous examples on how to create a layered or transparent
window in win2k using the following sort of method:

    Dim lOldStyle&
    lOldStyle = GetWindowLong(m_lhwnd, GWL_EXSTYLE)
    SetWindowLong m_lhwnd, GWL_EXSTYLE, lOldStyle Or WS_EX_LAYERED
    SetLayeredWindowAttributes m_lhwnd, 0, bLevel, LWA_ALPHA

Once you have set the alpha byte value of a window, how do you then read
that value?  Or more specifically, how do I read the Alpha Byte value of
a window?  I have the feeling this has something to do with the
GetWindowLong() API and bitwise operators.  Windows API's are still a
bit new to me.  Any help or pointers in an appropriate direction would
be appreciated.

Cheer,

padgett

********************
Padgett Rowell 
Aspect7
Office: +61 (08) 9202 1433
Mobile: 0402 122 419



  Return to Index