PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
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).
Note: 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.
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment