ChrisL Posted May 17, 2008 Posted May 17, 2008 I think you can just send the new style with GUISetStyle() leaving out the style you no longer want assuming it's a self built gui and not an exteral application. If its an external application take a look at _WinAPI_SetWindowLong() [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
ProgAndy Posted May 17, 2008 Posted May 17, 2008 (edited) This should work for AutoIt Windows: ; Author: Prog@ndy Func _GUIdeleteStyle($Style,$ExStyle,$GUI) $OldStyle = GUIGetStyle($GUI) If Not IsArray($OldStyle) Then Return 0 Return GUISetStyle(BitAND($OldStyle,BitNOT($Style)),BitAND($ExStyle,BitNOT($ExStyle)),$GUI) EndFuncoÝ÷ ØLmz¹Ú«¢+Øì9½Éµ°MÑå±è(ÀÌØí¡]¹ôÀÌØí]¥¹½Ý¡¹±(ÀÌØíMÑå±Q½Iµ½ÙôÀÌØí]M}A=AU@)}]¥¹A%}MÑ]¥¹½Ý1½¹ ÀÌØí¡]¹°ÀÌØí]1}MQe1° ¥Ñ9¡}]¥¹A%}Ñ]¥¹½Ý1½¹ ÀÌØí¡]¹°ÀÌØí]1}MQe1¤° ¥Ñ9=P ÀÌØíMÑå±Q½Iµ½Ù¤¤¤((íáMÑå±è(ÀÌØí¡]¹ôÀÌØí]¥¹½Ý¡¹±(ÀÌØíMÑå±Q½Iµ½ÙôÀÌØí]M}a}QI9MAI9P)}]¥¹A%}MÑ]¥¹½Ý1½¹ ÀÌØí¡]¹°ÀÌØí]1}aMQe1° ¥Ñ9¡}]¥¹A%}Ñ]¥¹½Ý1½¹ ÀÌØí¡]¹°ÀÌØí]1}aMQe1¤° ¥Ñ9=P ÀÌØíMÑå±Q½Iµ½Ù¤¤¤ Edited May 17, 2008 by ProgAndy *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
Zedna Posted May 17, 2008 Posted May 17, 2008 And how about deleting a GUICtrl style? Get hWnd of control by GUICtrlGetHandle() and then use above given code. Resources UDF ResourcesEx UDF AutoIt Forum Search
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