` Printed Icetips Article

Icetips Article



Par2: Disable (Hide?) Minimize button on window with an icon
2013-08-29 -- Heinz Kalmbach
 
in the clarion manual I found the following code to hide the minimize button 
on windows with icon:

Sty = GetWindowLong(Target{PROP:Handle}, GWL_STYLE)
MinHideError = SetWindowLong(Target{PROP:Handle}, GWL_STYLE, 
BAND(Sty,BXOR(-1,WS_MINIMIZEBOX)))

 I can compile this but it does not work as expected.
- if I place it directly after 'open the window' nothing happens
- if I place it after 'Prepare Alert Keys' then the button is NOT hided but 
disabled

Does someone know where to place the code?



Printed November 21, 2024, 12:31 pm
This article has been viewed/printed 35234 times.