I try to draw a rectangle using Direct2D. After initializing Direct2D device and Direct2D device context and setting up the render target, described in the following MSDN article, I tried to draw a rectangle as follows: HRESULT result; result = g_d2dContext->CreateSolidColorBrush( D2D1::ColorF(D2D1::ColorF::Blue), &g_SolidBrush ); D2D1_RECT_F rect = D2D1::RectF( g_targetRect.left + [...] read more
The following EndDraw() function returns an HRESULT error code: http://msdn.microsoft.com/en-us/library/windows/desktop/dd371924%28v=vs.85%29.aspx The documentation specifies: > If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT > error code and sets tag1 and tag2 to the tags that were active when the error > occurred. > > ...and then returns [...] read more