Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hiding the Min and Max buttons on an MDI window
Message
De
21/07/2014 13:55:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Hiding the Min and Max buttons on an MDI window
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01604253
Message ID:
01604253
Vues:
107
Hi All,

I want to hide the minimize and maximize buttons on an MDI window. I have found a Microsoft article which seems to be exactly what I want to achieve here:

http://support.microsoft.com/kb/137033

However, I am not sure how to convert the VB code to VFP. I understand the API calls themselves, that is straight forward enough. But I do not understand what the constant declarations are as in:
    Const WS_MINIMIZEBOX = &H20000
    Const WS_MAXIMIZEBOX = &H10000
... or how to use them in calculating a new value for "L" as in:
         L = GetWindowLong(Me.hWnd, GWL_STYLE)  
         L = L And Not (WS_MINIMIZEBOX)
         L = L And Not (WS_MAXIMIZEBOX)
         L = SetWindowLong(Me.hWnd, GWL_STYLE, L)
What is &H20000 and &H10000 ? How can I do this in VFP?

Any help appreciated.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform