View Single Post
Old 09-05-2019, 11:32 AM   #700
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 4,175
Default

Quote:
Originally Posted by Edgemeal View Post
Thanks, Been a long time (that hide/show hack was for something else ), but ya thats basically how I did it in VB6/WinXP_x86 days, went something like, style = style And Not (WS_CAPTION OR WS_THICKFRAME). Never even tried AHK.
So how would you add a style back that you removed?


@Julian, What about Extended Styles, is that possible also? I may never use any of this but always good to know.
Yeah - I've never really messed around with windows styles beyond copying and adapting other peoples AHK scripts

I guess to add the flags back you could check if the flags are not already set - something like:

Code:
if not style & 0xc40000 == 0xc40000 then
  style = style + 0xc40000
end
but there may be a neater way of doing this?

In fact you could check whether the flag value is set whether you want to add them or remove them - and then adjust accordingly - subtracting the flag value to remove them.

With AHK - you simply set the new flag settings to positive if you want to add them - and negative if you want to remove them - I guess it does the rest under the hood.
__________________
Projects - Reascripts - Lua:
Smart Knobs 2 | LBX Stripper | LBX Floating FX Positioner
Donate via Paypal | LBX Tools Website
lb0 is offline   Reply With Quote