Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CallWindowProc and WM_GetMinMaxInfo
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01392525
Message ID:
01392622
Vues:
48
Very close! I don't see the min values though.

I changed the setting values to the following to be able to distinguish which was which.
lnMinTrackSizeX = 200
lnMinTrackSizeY = 300
*
lnMaxTrackSizeX = 400
lnMaxTrackSizeY = 1000
Here's what I get. Are the return values supposed to be referenced in pairs?
Before setting the min/max values: 
1926, 1206, 5532, 1212

After : 
1926, 1206, 400, 1000
This is what MS has to say about the structure:
    typedef struct {
        POINT ptReserved;
        POINT ptMaxSize;
        POINT ptMaxPosition;
        POINT ptMinTrackSize;
        POINT ptMaxTrackSize;
    } MINMAXINFO;

Members

    ptReserved
        Reserved; do not use.
    ptMaxSize
        Specifies the maximized width (POINT.x) and the maximized height (POINT.y) of the window. For top-level windows, this value is based on the width of the primary monitor.
    ptMaxPosition
        Specifies the position of the left side of the maximized window (POINT.x) and the position of the top of the maximized window (POINT.y). For top-level windows, this value is based on the position of the primary monitor.
    ptMinTrackSize
        Specifies the minimum tracking width (POINT.x) and the minimum tracking height (POINT.y) of the window. This value can be obtained programmatically from the system metrics SM_CXMINTRACK and SM_CYMINTRACK.
    ptMaxTrackSize
        Specifies the maximum tracking width (POINT.x) and the maximum tracking height (POINT.y) of the window. This value is based on the size of the virtual screen and can be obtained programmatically from the system metrics SM_CXMAXTRACK and SM_CYMAXTRACK.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform