` Printed Icetips Article

Icetips Article



Par2: Disable Minimize and Maximize bodes
2013-11-05 -- Khin Choy Chin
 
Window contain Icon. The MinimizeBox and MaximizeBox will be enable.
To disable both,
at Global embed, Inside the Global Map

INCLUDE('svapifnc.inc'),ONCE

AT Procedure

pHwnd Long

!embed after window opened
pHwnd = 0{prop:handle}

! disable MinimizeBox
SetWindowLong(pHwnd,IT_GWL_STYLE, GetWindowLong(phwnd,IT_GWL_STYLE) - 
WS_MINIMIZEBOX)

or

! Hide MinimizeBox and MaximizeBox
SetWindowLong(pHwnd,IT_GWL_STYLE, GetWindowLong(phwnd,IT_GWL_STYLE) - 
WS_MINIMIZEBOX -WS_MAXIMIZEBOX)



Printed November 23, 2024, 3:37 am
This article has been viewed/printed 35243 times.