Table of Contents

Enum TitleBarHit

Namespace
ExControls
Assembly
ExControls.dll

Part of the custom title bar of a form at a point - determines what Windows does with the mouse (HitTest(Point)).

public enum TitleBarHit

Fields

Client = 0

A control in the title bar (menu item, tool strip button) - it handles the mouse itself.

Caption = 1

Free space of the title bar - dragging the window, double click to maximize, system menu on right click.

SystemMenu = 2

Window icon - system menu.

MinimizeButton = 3

Minimize button.

MaximizeButton = 4

Maximize and restore button - in Windows 11 the system offers Snap Layouts over it.

CloseButton = 5

Close button.

ResizeTop = 6

Top border of the window - resizing the height.

ResizeTopLeft = 7

Top left corner of the window - resizing.

ResizeTopRight = 8

Top right corner of the window - resizing.

HelpButton = 9

Help button (HelpButton, only without minimize and maximize) - context help.