ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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 or the control with Windows API (especially the drawing functions of the Windows API).
Note: If SysGetDC has already been called and the previous DC has not been released by SysReleaseDC, SysGetDC automatically releases the previous DC.
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 occurs.
<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: wd300std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/14/2025

Send a report | Local help