|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| user32.lib
| Header File
| winuser.h
| Unicode
| No
| Platform Notes
| None
|
|
|
ReleaseDC
The ReleaseDC function releases a device context (DC), freeing it for use by other
applications. The effect of the ReleaseDC function depends on the type of device context. It frees only common and
window device contexts. It has no effect on class or private device contexts.
int ReleaseDC(
HWND hWnd,
| // handle of window
| HDC hDC
| // handle of device context
| );
|
|
Parameters
hWnd
Identifies the window whose device context is to be released.
hDC
Identifies the device context to be released.
Return Values
The return value specifies whether the device context is released. If the
device context is released, the return value is 1.
If the device context is not released, the return value is zero.
Remarks
The application must call the ReleaseDC function for each call to the GetWindowDC function and for each call to the GetDC function that retrieves a common device context.
An application cannot use the ReleaseDC function to release a device context that was created by calling the CreateDC function; instead, it must use the DeleteDC function.
See Also
CreateDC, DeleteDC, GetDC, GetWindowDC
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|