 |
DeleteDC Add comment W32 Constants Translate this page |
 |
 |
|
Deletes the specified device context (DC). |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL DeleteDC(
HDC hdc // handle to DC
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER DeleteDC IN gdi32 INTEGER hdc
|
 |
 |
 |
| Parameters: |
 |
hdc
[in] Handle to the device context. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| My comment: |
 |
From the GDI Black Book: remember, use the ReleaseDC function only for a display device context that was retrieved from the GDI device-context cache. After you"re done with the memory device context, you must free it by using the DeleteDC function.
Finally:
- use ReleaseDC for forms (the hwnd used as the first parameter)
- use DeleteDC for memory device contexts (e.g. CreateCompatibleDC) |
 |
 |
| Word Index links for the DeleteDC : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-07-31 12:00:00 | | Modified: | 2001-11-26 16:02:47 | Visited in last 7 days: 163 |