` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Hide or disable Minimize button
2011-08-23 -- Carl Barnes
 
RemoveMinButton PROCEDURE !So Window can have ICON() but not a Min button Sty LONG,AUTO WS_MINIMIZEBOX EQUATE(20000h) !WS_MAXIMIZEBOX EQUATE(10000h) !Could remove Max same way, but just don't add it GWL_STYLE EQUATE(-16) CODE Sty = GetWindowLong(0{prop:handle}, GWL_STYLE) IF BAND(Sty,WS_MINIMIZEBOX) THEN SetWindowLong(0{prop:handle}, GWL_STYLE, Sty - WS_MINIMIZEBOX) END RETURN MODULE('API') GetWindowLong(SIGNED hWnd,SIGNED nIndex),LONG,PASCAL,DLL(1),NAME('GetWindowLongA') SetWindowLong(SIGNED hWnd,SIGNED nIndex,LONG,PASCAL,DLL(1),NAME('SetWindowLongA'),proc !http://msdn.microsoft.com/en-us/library/ms633591(v=vs.85).aspx END


Today is November 21, 2024, 7:03 am
This article has been viewed 35337 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: