Hey,
my loup lead me to the conclusion that sometimes if i call CreateHwndRenderTarget the input to my PC gets blocked.
This Message means: "MSVS Express 2013 detected that the Userinput is blocked. Possible solutions are a modal Dialog or a Task that requires a User Input Block."
I realy don't know why i get this message... I don't know what im doing wrong.
But still a small code snippet:
HRESULT CRenderTarget::fn_CreateDeviceResources(HWND hHwnd)
{
HRESULT hr = S_OK;
if (!m_pRenderTarget)
{
RECT rc;
GetClientRect(hHwnd, &rc);
D2D1_SIZE_U size = D2D1::SizeU(rc.right - rc.left, rc.bottom - rc.top);
hr = m_pDirect2dFactory->CreateHwndRenderTarget(D2D1::RenderTargetProperties(), D2D1::HwndRenderTargetProperties(hHwnd, size), &m_pRenderTarget);
}
return hr;
}
It's state-dependent wether CreateHwndRenderTarget blocks the input on the first call or the second call.
The strange thing is, that yesterday everthing works fine, but today i get this problem.
Perhaps anyone know this problem?
Thanks and sorry for my bad english.