IDirect3DRMWinDevice::HandlePaint
Responds to a Windows WM_PAINT message. The hDC parameter should be taken from the PAINTSTRUCT structure given to the Windows BeginPaint function. This method should be called before repainting any application areas in the window because it may repaint areas outside the viewports that have been created on the device.
HRESULT HandlePaint(
HDC hDC
);
Parameters
hDC
Handle of the device context (DC).
Return Values
Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.