PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Handle of a window
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the handle of a window identified by its title. This window was not created by WINDEV.
Note: To find out the handle of a WINDEV window, use Handle.
Example
// Find out the handle of the "Sales 2011 - Microsoft Word.DOC" window
ResWinHandle is int
ResWinHandle = SysWinHandle("Sales 2011 - Microsoft Word.DOC")

IF ResWinHandle = Null THEN Trace("Window not found")
Syntax
<Result> = SysWinHandle(<Window title>)
<Result>: Integer
  • Handle of the specified window.
  • Null constant or 0 if the window was not found.
<Window title>: Character string (with quotes)
Title of the window to use. This parameter must be identical to the title displayed in the title bar of the window.
Remarks

Handle of a window

SysWinShow, SysWinTitle and SysValidHandle use the handle number of the windows that were not created by WINDEV.
To handle the windows created by WINDEV, we recommend that you use the following functions: Restores, Maximize, WinStatus, Iconize, ...
Related Examples:
WD Jump lists Training (WINDEV): WD Jump lists
[ + ] JumpList in Windows 7

A JumpList is a menu accessible from the Start menu or from the application icon in the taskbar.
It is used to display the documents recently or frequently opened by the application. It is also used to display the specific tasks.

This example handles images and some operations are directly accessible from the JumpList.
Component : wd240std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment