ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
SysGetDC (Function)
In french: SysRécupèreDC
Retrieves the DC (Device Context) of a window, control or screen. This DC can be used to handle the window, the control, ... with the Windows APIs (especially the drawing functions of the Windows API).
Remark: If SysGetDC has already been called and if the previous DC was not freed by SysReleaseDC, the former DC is automatically freed by SysGetDC.
Example
// Retrieve the DC of the "Microsoft Word - Sales 2000.DOC" window
ResHandle = SysWinHandle("Microsoft Word - Sales 2000.DOC")
ResGetDC = SysGetDC(ResHandle)
Syntax
<Result> = SysGetDC(<Handle>)
<Result>: Integer
  • DC of the window, control or screen,
  • 0 if an error occurred.
<Handle>: Integer
  • Handle of the window or control to use.
  • 0 to retrieve the DC of the screen.
Remarks
The window handle is returned:
The handle of a control is returned by Handle.
Component: wd290std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help