"The code is exactly
how I would like to write code and the algorithms used are very
efficient and well-documented."
Van T. Dinh, Microsoft MVP
|
|
Class: CCaptionlessWindowMover
Class that allows the user to move a form with the mouse, even if it doesn't have a caption. If you create a form without a caption bar, there is normally no way for the user to move it with a mouse. If you wish to allow the user to move the form with a mouse by dragging on any part of the form, not just the caption, you can use this class to handle the mouse-related events required to make this happen.
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the CCaptionlessWindowMover class
|
|
Form
|
Property
|
Gets a pointer to the form previously assigned.
|
|
Class_Terminate
|
Terminate
|
Release storage for local object variables
|
|
HandleMouseDown
|
Method
|
Handle the MouseDown event of the encapsulated form (call from this method from the form's MouseDown event)
|
|
HandleMouseMove
|
Method
|
Handle the MouseMove event of the encapsulated form (call from this method from the form's MouseMove event)
|
|
HandleMouseUp
|
Method
|
Handle the MouseUp event of the encapsulated form (call from this method from the form's MouseUp event)
|
Overview of Total Visual SourceBook
The source code in Total Visual
SourceBook includes modules and classes for Microsoft Access, Visual
Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily
add this professionally written, tested, and documented royalty-free code
into your applications to simplify your application development efforts.
Additional Resources
|
|