Products Downloads


French version


 


Retrieves the dimension (i.e. width or height) of certain display elements and system configuration parameters. Display elements are all the parts of a window that are displayed on screen. Dimension values are expressed in pixels.


Context

  • Windows client,

  • Adelia Cloud client.


Parameters

NUM_BIN_4

Index

Index of the element or parameter whose value is to be retrieved.

0

Width of the screen of the primary display monitor

1

Height of the screen of the primary display monitor

2

Width of a vertical scroll bar

3

Height of a horizontal scroll bar

4

Height of a title bar

5

Width of a window border

6

Height of a window border

7

Width of the frame around the perimeter of a window that has a caption but is not sizable

8

Height of the frame around the perimeter of a window that has a caption but is not sizable

9

Height of the thumb box in a scroll bar

10

Width of the thumb box in a scroll bar

11

Default width of an icon

12

Default height of an icon

13

Width of a cursor

14

Height of a cursor

15

Height of a single-line menu bar

16

Width of the client area for a full-screen window

17

Height of the client area for a full-screen window

18

For double byte character set versions of the system, this is the height of the Kanji window at the bottom of the screen

19

Non-null value if a mouse is installed

20

Height of the arrow bitmap on a scroll bar

21

Width of the arrow bitmap on a scroll bar

22

Non-null value if the debug version of User.exe is installed

23

Non-null value if the meanings of the left and right mouse buttons are swapped

28

Minimum width of a window

29

Minimum height of a window

30

Width of a button in a window's title bar

31

Height of a button in a window's title bar

32

Width of the sizing border of a window that can be resized

33

Height of the sizing border of a window that can be resized

34

Minimum tracking width of a window using the mouse

35

Minimum tracking height of a window using the mouse

36

Width of the rectangle around the location of a first click in a double-click sequence. The second click must occur within this rectangle for the system to consider the two clicks a double-click.

37

Height of the rectangle around the location of a first click in a double-click sequence. The second click must occur within this rectangle for the system to consider the two clicks a double-click.

38

Width of a grid cell for items in large icon view

39

Height of a grid cell for items in large icon view

40

Non-null value if drop-down menus are right-aligned with the corresponding menu-bar item

41

Non-null value if the Microsoft Windows for Pen computing extensions are installed

42

Non-null value if the double-byte character-set (DBCS) version of User.exe is installed

43

Number of buttons on mouse, or zero if no mouse is installed.

44

Non-null value if security is present

45

Width of a 3-D border

46

Height of a 3-D border

47

Width of a grid cell for a minimized window. Each minimized window fits into a rectangle this size when arranged

48

Height of a grid cell for a minimized window. Each minimized window fits into a rectangle this size when arranged

49

Recommended width of a small icon (in a title bar for instance)

50

Recommended height of a small icon (in a title bar for instance)

51

Height of a small title bar (a tool palette for instance)

52

Width of a small title bar buttons

53

Height of a small title bar buttons

54

Width of menu bar buttons, such as the child window close button

55

Height of menu bar buttons, such as the child window close button

56

Specifies how the system arranged minimized windows. Returns the sum of a position value plus an alignment value:

0  position in the bottom-left corner of the screen
1  position in the bottom-right corner of the screen
2  position in the top-left corner of the screen
3  position in the top-right corner of the screen


0  horizontal alignment
4  vertical alignment
8  windows are hidden

57

Width of a minimized window

58

Height of a minimized window

59

Width of a window that has a title and sizing borders

60

Height of a window that has a title and sizing borders

61

Default width of a maximized window on the primary display monitor

62

Default height of a maximized window on the primary display monitor

63

Odd value if a network is present

67

Value that specifies how the system was started:

0  Normal boot
1  Fail-safe boot
2  Fail-safe with network boot

Fail-safe boot bypasses the user's startup files

68

Width of a rectangle centered on a drag point to allow for limited movement of the mouse pointer before a drag operation begins

69

Height of a rectangle centered on a drag point to allow for limited movement of the mouse pointer before a drag operation begins

70

Non-null value if the user requires an application to present information visually in situations where it would otherwise present the information only in audible form

71

Width of the default menu check-mark bitmap

72

Height of the default menu check-mark bitmap

73

Non-null value if the machine has a 386 CPU, is low on memory or has a slow display card.

74

Non-null value if the system is enabled for Hebrew and Arabic languages

75

Non-null value if a mouse with a wheel is installed

76

X-coordinate for the left side of the virtual screen. The virtual screen is the bounding rectangle of all display monitors

77

Y-coordinate for the top of the virtual screen. The virtual screen is the bounding rectangle of all display monitors

78

Width of the virtual screen

79

Height of the virtual screen

80

Number of display monitors on the desktop

81

Non-null value if all the display monitors have the same color format

NUM_BIN_4

Value

Retrieved dimension or value of the parameter.

NUM_BIN_4

ReturnCode

Return code for the operation:

0  : the operation was successful.

-1 : the index was not valid.



Example

/* Retrieving the height of a title bar in the Height variable

NUM_BIN_4 Height

NUM_BIN_4 ReturnCode

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxGetSystemMetrics' 4 Height ReturnCode



List of the VaToolBx functions by topic


↑ Top of page

  • Aucune étiquette