VB Code:
If strBuffer = "#32768" Then
Debug.Print CWP.hwnd 'The hWnd of the menu is printed in the immediate window.
Debug.Print GetWindowLong(CWP.hwnd, GWL_EXSTYLE) 'So are the current window longs...
Call SetWindowLong(CWP.hwnd, GWL_EXSTYLE, GetWindowLong(CWP.hwnd, GWL_EXSTYLE) Or WS_EX_LAYERED)
Debug.Print SetLayeredWindowAttributes(CWP.hwnd, 0, 20, LWA_ALPHA) '1 is printed in the immediate
'window and allapi states a nonzero return value is a success
End If
I'm just feeling confused now, rather than feeling defeated..