Access/VBA Library

ReleaseDC

Releases a device context (DC)

See also: https://msdn.microsoft.com/en-us/library/windows/desktop/dd162920(v=vs.85).aspx

Syntax

ReleaseDC( hwnd, hdc )
Parameters
Name Type Description
hwnd Long Required. A handle to the window whose DC is to be released.
hdc Long Required. A handle to the DC to be released.
Return value

Long : 1 if the DC was released, otherwise 0.

Code
Private Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Long, ByVal hdc As Long) As Long

Remarks

  • API is used to determine the width and height of the screen.

See also

  • GetDC
  • ScreenWidth
  • ScreenHeight