Microsoft DirectX 8.1 (C++)

CImageDisplay::RefreshDisplayType

Updates the CImageDisplay object with the current display type.

Syntax

HRESULT RefreshDisplayType(
    LPSTR szDeviceName
);

Parameters

szDeviceName

Name of the device to update. If omitted, this parameter defaults to the main device.

Return Value

Returns NOERROR if successful; E_FAIL if unsuccessful.

Remarks

This member function should be called when a WM_DISPLAYCHANGED message is received.

See Also