Results 1 to 9 of 9

Thread: Is my bitwise operation correct?

Threaded View

  1. #1

    Thread Starter
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Is my bitwise operation correct?

    i want to identify windows which fully or partially trasnparent. so i check those windows against WS_EX_LAYERED bit. i want to make sure below bitwise operation is correct.

    Code:
    Public Function isTrans(qhwnd As Long) As Boolean
    Dim tmp As Long
    tmp = GetWindowLong(qhwnd, GWL_EXSTYLE)
    If tmp And WS_EX_TRANSPARENT Then
       isTrans = True ' yes it is 
    Else
       isTrans = False ' no its not 
    End If
    End Function
    is this correct? can i identify windows such as shown below using this code?

    Last edited by Fazi; Aug 30th, 2009 at 10:36 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width