   D3D10 full-screen issues
  Hello everyone,I'm having much trouble in going to full screen using direct3D10, so what happens is: my core class's initialization function takes "bool Fullscreen" argument, and creates the swap chain with it, what happens is that my application goes to full-screen, and return back to windowed mode after IDXGISwapChain::Present ( ), what's wrong there? here's my code////create the device and the swap chain//_sd.BufferDesc.Width  = width;_sd.BufferDesc.Height = height;_sd.BufferDesc.RefreshRate.Numerator = 60;_sd.BufferDesc.RefreshRate.Denominator = 1;_sd.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;_sd.BufferDesc.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED;_sd.BufferDesc.Scaling = DXGI_MODE_SCALING_UNSPECIFIED;// No multisampling._sd.SampleDesc.Count   = 1;_sd.SampleDesc.Quality = 0;_sd.BufferUsage  = DXGI_USAGE_RENDER_TARGET_OUTPUT;_sd.BufferCount  = 1;_sd.OutputWindow = _MainWindow;_sd.Windowed= !fullScreen;_sd.SwapEffect   = DXGI_SWAP_EFFECT_DISCARD;_sd.Flags   = 0;if ( FAILED ( D3D10CreateDevice ( NULL, D3D10_DRIVER_TYPE_HARDWARE, NULL, 0, D3D10_SDK_VERSION, &_device ) ) )return HX_UNABLETOCREATEDEVICE;IDXGIFactory* factory;if ( FAILED ( CreateDXGIFactory ( __uuidof ( IDXGIFactory ), (void**)&factory ) ) )return HX_FAILEDTOCREATEDXGIFACTORY;if ( FAILED ( factory->CreateSwapChain ( _device, &_sd, &_swapChain ) ) )return HX_UNABLETOCREATESWAPCHAIN;if ( FAILED ( factory->MakeWindowAssociation ( _MainWindow, DXGI_MWA_NO_ALT_ENTER ) ) )int x = 0;factory->Release ( );now that's one problem, the other one is the alt-enter thing, i want to turn it off, as you see aboveif ( FAILED ( factory->MakeWindowAssociation ( _MainWindow, DXGI_MWA_NO_ALT_ENTER ) ) )it succeeds, but nothing is changedThanks.   
  Ok the first problem seems to be fixed by not creating any windows but the window handling the direct3D app.and the second one seems to be fixed by changing DXGI_MWA_NO_ALT_ENTER to DXGI_MWA_NO_WINDOW_CHANGES, i dont really know what's the use of DXGI_MWA_NO_ALT_ENTER, it simply does nothingThanks anyway, sorry for the useless post   