Jump to content
Sign in to follow this  
Info

Deleting a GUI Style

Recommended Posts

ChrisL

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()

Share this post


Link to post
Share on other sites
ProgAndy

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%}]¥¹½Ý1½¹ ÀÌØí¡]¹°ÀÌØí]1}MQe1°  ¥Ñ9¡}]¥¹A%}Ñ]¥¹½Ý1½¹ ÀÌØí¡]¹°ÀÌØí]1}MQe1¤° ¥Ñ9=P ÀÌØíMÑå±Q½Iµ½Ù¤¤¤((íáMÑå±è(ÀÌØí¡]¹ôÀÌØí]¥¹½Ý¡¹±(ÀÌØíMÑå±Q½Iµ½ÙôÀÌØí]M}a}QI9MAI9P)}]¥¹A%}]¥¹½Ý1½¹ ÀÌØí¡]¹°ÀÌØí]1}aMQe1° ¥Ñ9¡}]¥¹A%}Ñ]¥¹½Ý1½¹ ÀÌØí¡]¹°ÀÌØí]1}aMQe1¤°    ¥Ñ9=P ÀÌØíMÑå±Q½Iµ½Ù¤¤¤
Edited 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

Share this post


Link to post
Share on other sites
Info

And how about deleting a GUICtrl style?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.