Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Move a Form not using its Titlebar or Caption
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01053156
Message ID:
01053187
Vues:
21
Frederico,

In your form, put the following codes in the respective methods, events:
function load
	declare integer ReleaseCapture in WIN32API
	declare integer SendMessage in WIN32API integer, integer, integer, integer
endfunc

function mousedown
	lparameters nButton, nShift, nXCoord, nYCoord
	local lnHandle

	if nButton = 1
		ReleaseCapture()
		SendMessage(this.hwnd, 0x112, 0xF012,0)
	endif
endfunc
That will enable movement of the form from any point that has no object
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform