Sign in to follow this  
Followers 0

Toggle window Styles on and off

1 post in this topic

Posted (edited)

I can toggle the "click through" ($WS_EX_TRANSPARENT) on a window, but when I try to toggle the Title Bar on and off ($WS_CAPTION) it just disables it.

When the window is in Click through mode, I want the title bar to disappear.

if BitAnd(GUICtrlRead($Clickthru),$GUI_CHECKED) then
            _WinAPI_SetWindowLong($hMain, $GWL_EXSTYLE, _
            BitOR(_WinAPI_GetWindowLong($hMain, $GWL_EXSTYLE), $WS_EX_TRANSPARENT))

            _WinAPI_SetWindowLong($hMain, $GWL_STYLE, _
            BitOR(_WinAPI_GetWindowLong($hMain, $GWL_STYLE), $WS_CAPTION))

        Else
            $NoTrans   = BitNOT($WS_EX_TRANSPARENT)
               _WinAPI_SetWindowLong($hMain, $GWL_EXSTYLE, _
                BitAND(_WinAPI_GetWindowLong($hMain, $GWL_EXSTYLE), $NoTrans))

            $Caption        = BitNOT($WS_CAPTION)
               _WinAPI_SetWindowLong($hMain, $GWL_STYLE, _
               BitAND(_WinAPI_GetWindowLong($hMain, $GWL_STYLE), $Caption))
        Endif

EDIT: See This

Edited by Lakes

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.