Products Downloads


French version


 


This function retrieves the handle of the monitor displaying the window passed as a parameter.

If the window is split over several monitors, the monitor returned is the one containing the largest visible fraction of this window.

If the window is not positioned on one of the active monitors, the monitor returned depends on the value of the "flag" parameter.


Context

  • Windows client.

  • Adelia Cloud client.


Parameters

<WINDOW>

Window

Window name.

NUM_BIN_4

Flag

Default behavior if an error occurs:

flag = 0 returns 0 (NULL)

flag = 1 returns the main monitor

flag = 2 returns the monitor closest to the coordinates

NUM_BIN_4

Monitor

Monitor handle



Example

NUM_BIN_4  HMON

* retrieves the monitor associated to the window ID_WIN0

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxGetMonitorFromWindow' ID_WIN0 0 HMON


List of the VaToolBx functions by topic


↑ Top of page

  • Aucune étiquette