'KCMLGetWindow()
Returns the window handle of the current topmost form or text window. This can be used to supply a window handle for use by other Win32 $DECLAREs.
Arguments
The function takes no arguments.
Returns
Window handle.
Syntax
The following definition is built into KCML. You do not have to include it in your own code.
$DECLARE 'KCMLGetWindow()
Remarks
This function can be used to get the window handle for the active text window. Window handles can be used with WIN32 API $DECLARE calls to size, hide or move the text window. They can also be used to chage the text in the title bar as in the example below. This call is backward compatible with WDW. Note that the WIN32 API call GetActiveWindow() may not return the right handle and should not be used.
Example
PRINT "This window should have a title saying Hello" 'SetWindowText('KCMLGetWindow(), "Hello") INPUT z$
Further Information
Introduced | KCML 5.00 |
Compatibility | KClient |
See Also
KCMLAddNotifyIcon, KCMLDeferHiddenControls, KCMLDlgMessageBox, KCMLEnableBufferKeys, KCMLEnableDropdownPreFill, KCMLEnableModalPopups, KCMLForceChromium, KCMLGetBufferKeys, KCMLGetChromiumShimVersion, KCMLGetChromiumVersion, GetLocalTime, KCMLHideErrorDialogs, KCMLHookIEOCX, MessageBox, KCMLRemoveNotifyIcon, KCMLSetBrowserDebugPort, KCMLSetBufferKeyBreakKey, KCMLSetBufferKeyTimeout, KCMLSetBufferKeys, KCMLSetCenturyThreshold, KCMLSetChromiumAcceptLang, KCMLSetDollarConvert, KCMLSetHTMLCtrlRelativeURL, KCMLSetTitleTemplate, KCMLTouchScreenMode