   Cannot set Full screen
  I try to make window screen to be full-screen.But I got the normal screen+kind of freeze window.I think I follow instruction but it doesn't work.HRESULT CGraphics::Init(HWND hWnd, bool bWindow){//bWindow is false so it means full-screen modeD3DPRESENT_PARAMETERS d3dpp;    D3DDISPLAYMODE d3ddm;g_pD3D = Direct3DCreate9(D3D_SDK_VERSION);if(g_pD3D == NULL){return E_FAIL;}    if(FAILED(g_pD3D->GetAdapterDisplayMode(D3DADAPTER_DEFAULT, &d3ddm))){return E_FAIL;}ZeroMemory(&d3dpp, sizeof(d3dpp));d3dpp.BackBufferCount= 1;d3dpp.BackBufferWidth= WINSCREEN_WIDTH;d3dpp.BackBufferHeight= WINSCREEN_HEIGHT;d3dpp.BackBufferFormat= D3DFMT_UNKNOWN;d3dpp.SwapEffect= D3DSWAPEFFECT_DISCARD;d3dpp.Windowed= bWindow;d3dpp.EnableAutoDepthStencil= true;d3dpp.BackBufferFormat= d3ddm.Format;if(bWindow){// ウィンドウモードd3dpp.BackBufferFormat = D3DFMT_UNKNOWN;d3dpp.FullScreen_RefreshRateInHz = 0;d3dpp.PresentationInterval  = D3DPRESENT_INTERVAL_IMMEDIATE;}else{// フルスクリーンモードd3dpp.BackBufferFormat = D3DFMT_R5G6B5;d3dpp.FullScreen_RefreshRateInHz = D3DPRESENT_RATE_DEFAULT;d3dpp.PresentationInterval  = D3DPRESENT_INTERVAL_DEFAULT;}if(FAILED(g_pD3D->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,hWnd,D3DCREATE_HARDWARE_VERTEXPROCESSING,&d3dpp,&g_pD3DDevice))){if(FAILED(g_pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp,&g_pD3DDevice))){if(FAILED(g_pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_REF,hWnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp,&g_pD3DDevice))){return E_FAIL;}}}//.......render thingreturn S_OK;}and my window codeHWND CWindow::Create(LPCTSTR str_className, LPCTSTR str_Title,int Width, int Height){    wnd_Structure.cbSize = sizeof(WNDCLASSEX);    wnd_Structure.style = CS_HREDRAW | CS_VREDRAW;wnd_Structure.lpfnWndProc = WinProc;    wnd_Structure.cbClsExtra = 0;    wnd_Structure.cbWndExtra = 0;    wnd_Structure.hInstance = hInstance;    wnd_Structure.hIcon = NULL;    wnd_Structure.hCursor = NULL;    wnd_Structure.hbrBackground = GetSysColorBrush(COLOR_BTNFACE);    wnd_Structure.lpszMenuName = NULL;    wnd_Structure.lpszClassName = str_className;    wnd_Structure.hIconSm = LoadIcon(NULL,IDI_APPLICATION);RegisterClassEx(&wnd_Structure);return CreateWindowEx(WS_EX_CONTROLPARENT,  str_className, str_Title,  WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_OVERLAPPEDWINDOW, nxAxis, nyAxis,  Width + GetSystemMetrics(SM_CXDLGFRAME)*2, Height + GetSystemMetrics(SM_CXDLGFRAME)*2+GetSystemMetrics(SM_CYCAPTION),  NULL, NULL, hInstance, NULL); }the normal window works fine , juse a problem on full-screen as mention[Edited by - fantasyme on May 18, 2010 8:30:02 AM]