GetCurrentObject(3w)

GetCurrentObject3w

Usage

HGDIOBJ GetCurrentObject
(
HDC hdc,
UINT type
)

Overview

Get the currently selected object of a given type in a device context.

Params

hdc [In] Device context to get the current object from.

type [In] Type of current object to get (OBJ_* defines from "wingdi.h").

Returns

Success: The current object of the given type selected in hdc.

Failure: A NULL handle.

Notes

- only the following object types are supported:

OBJ_PEN

OBJ_BRUSH

OBJ_PAL

OBJ_FONT

OBJ_BITMAP

Implementation

Declared in "wingdi.h".

Implemented in "dlls/gdi32/gdiobj.c".

Debug channel "gdi".

Releases

6 releases since Debian 2.0 (Hamm); the text changed 5 times.

  1. 2.0
  2. 2.1
  3. 4.0
  4. 5.0
  5. 6.0
  6. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.