Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Border contants for resizing a window via SC_SIZE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01000050
Message ID:
01000161
Vues:
50
Hi Anatoliy,

> http://www.news2news.com/vfp/w32constants.php

Thanks for the link! My subscription to your site has already come in handy several times today.

My challenge is figuring out what text to search on for the name of the SC_SIZE constants. SC_ doesn't give me the results I'm looking for.

I'm guessing that the following constants apply to SC_SIZE?
#define WMSZ_LEFT 		1
#define WMSZ_RIGHT 		2
#define WMSZ_TOP 		3
#define WMSZ_TOPLEFT 		4
#define WMSZ_TOPRIGHT 		5
#define WMSZ_BOTTOM 		6
#define WMSZ_BOTTOMLEFT 	7
#define WMSZ_BOTTOMRIGHT 	8
Ultimately, what I'm trying to do is take your article:

How to Move a Form not using its Titlebar or Caption http://news2news.com/vfp/?function=-1&example=195

and adapt it so a user can resize a borderless form.

In particular:

#DEFINE SC_MOVE 0xf000
= SendMessage(hWindow, WM_SYSCOMMAND, SC_MOVE, WM_NULL)

From my research, it appears that I need to specify a border constant OR-ed with SC_MOVE.

I think forms with border types other than 3 (resizable) IGNORE the SC_MOVE message.

So now I'm thinking my strategy will be to return to some VFP based form resizing code.

Does my conclusion seem reasonable or are their other techniques I should consider when attempting to build a resizable borderless form?

Thanks!
Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform