Original Post
Follows some MultiMon code example take''n from the SDK examples.
As i understand the first screen should setCooperativeLevel()
different from all other screen.
it doent work for me unless i treat all screen as primary screen.
Any ideas?
Maoz.
================================================================
if( pScreen == g_pScreenFirst)
{
dwFlags = DDSCL_SETFOCUSWINDOW;
if( FAILED( hr = pScreen->pDD->SetCooperativeLevel( g_hWnd, dwFlags ) ) )
return hr;
dwFlags = DDSCL_ALLOWREBOOT | DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN;
if( FAILED( hr = pScreen->pDD->SetCooperativeLevel(g_hWnd, dwFlags ) ) )
return hr;
}
else
{
dwFlags = DDSCL_SETFOCUSWINDOW | DDSCL_CREATEDEVICEWINDOW |
DDSCL_ALLOWREBOOT | DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN;
if( FAILED( hr = pScreen->pDD->SetCooperativeLevel(g_hWnd, dwFlags ) ) )
return hr;
}
=================================================================