Search
Box.MnpHandlesMask Property
See Also
 



Gets or sets what modifications can be applied to a box through its selection handles.

 Syntax

VB6  Copy Code

Public Property Get MnpHandlesMask() As Long
Public Property Let MnpHandlesMask( _
    ByVal value As Long _
)

C++  Copy Code

public:
int get_MnpHandlesMask ()
void put_MnpHandlesMask (
    int value
)

 Property Value

A long value. The default is 0xFFFFFFFF.

 Remarks

A bit-mask allowing the possible users' modifications to a box to be restricted. Each manipulation handle can be enabled or disabled by setting or clearing the bits in the mask. The correspondence of bits to manipulation handles is shown below, the zero bit being the right most in the binary form of a number.

Bit

Handle location

Function

0

upper-left corner manipulation handle

resizes the box

1

upper-right corner manipulation handle

resizes the box

2

bottom-right corner manipulation handle

resizes the box

3

bottom-left corner manipulation handle

resizes the box

4

upper-center manipulation handle

resizes the box vertically

5

right-center manipulation handle

resizes the box horizontally

6

bottom-center corner manipulation handle

resizes the box vertically

7

left-center corner manipulation handle

resizes the box horizontally

8

central manipulation handle

moves the box

9

a round handle above the box

rotates the box

 Example

To make a box resizable only horizontally, use binary 110100000 (hex. 1A0). That disables all manipulation handles, except the middle left and middle right, which allow horizontal resizing, and the central one allowing movement of the box.

 See Also