I can get the my app to switch from windowed to fullscreen and back.. but when i switch from full screen to windowed the window is borderless and stuck in the upper left corner of the screen... but
if i start out in windowed mode the window has a border and functions normally until i switch to fullscreen and back... Im sure it just something i am not doing...
heres some code..
**initial window creation**
// set style based on windowed type
// WNDCLASSEX m_winClass
if( m_settings.GetWindowed() )
style = WS_OVERLAPPEDWINDOW|WS_VISIBLE;
else
style = WS_POPUP|WS_VISIBLE;
// fill out window description
m_winClass.lpszClassName = m_appTitle;
m_winClass.cbSize = sizeof(WNDCLASSEX);
m_winClass.style = CS_HREDRAW | CS_VREDRAW; //CS_OWNDC
m_winClass.lpfnWndProc = SimpleFramework::WndProc;
m_winClass.hInstance = m_hInstance;
m_winClass.hIconSm = LoadIcon(0, IDI_APPLICATION);
m_winClass.hIcon = LoadIcon(0, IDI_APPLICATION);
m_winClass.hCursor = LoadCursor(0, IDC_ARROW);
m_winClass.hbrBackground = (HBRUSH)NULL;
m_winClass.lpszMenuName = NULL;
m_winClass.cbClsExtra = 0;
m_winClass.cbWndExtra = 0;
m_hWnd = CreateWindowEx( 0, m_appTitle, m_appTitle, style,CW_USEDEFAULT,
CW_USEDEFAULT,m_settings.GetWidth(), m_settings.GetHeight(), NULL, NULL, m_hInstance, NULL ) ) )
**window update**
DWORD style;
// set style based on windowed type
if( m_settings.GetWindowed() )
style = WS_OVERLAPPEDWINDOW|WS_VISIBLE;
else
style = WS_POPUP|WS_VISIBLE;
// change the settings
SetWindowLong( m_hWnd, GWL_STYLE, style );