Lakes Posted August 18, 2010 Share Posted August 18, 2010 (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)) EndifEDIT: See This Edited August 19, 2010 by Lakes 2015 - Still no flying cars, instead blankets with sleeves. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now