Missing SetStyle method in RenderWindow class

Mar 23, 2013 at 11:50 PM
For changing the appearance of the window i miss this methods inside the RenderWindow class:

I use a appearance with no border. So i have to change the m_dStyle value.

DWORD GetStyle();
void SetStyle( DWORD dStyle );
Coordinator
Mar 26, 2013 at 2:57 AM
I'll add this one into the next commit too.
Coordinator
Mar 26, 2013 at 12:09 PM
This has been added and tested in a very simple manner. Please let me know if it works for you.
Nov 10, 2013 at 8:16 PM
Edited Nov 10, 2013 at 8:16 PM
geht nicht ganz.

musste was auskommentieren dafür.
void Win32RenderWindow::Initialize(IWindowProc* WindowProcObj)
{
    WNDCLASSEX wc;
    ...
        // Specify the window style
    //m_dStyle = (WS_OVERLAPPEDWINDOW | WS_VISIBLE);
        ...
}

Win32RenderWindow::Win32RenderWindow( )
{
    m_hWnd = 0;
    m_dStyle = (WS_OVERLAPPEDWINDOW | WS_VISIBLE);
}
nach:
m_pWindow->Initialize( this );
SetStyle auzurufen funktioniert zum Beispiel garnicht.
Coordinator
Jan 10, 2014 at 4:48 PM
Your first item is a good point. I have moved the default values into the constructor and removed them from the initialize method. Sorry about that :(

The second point is not so easy to set up. After calling initialize, the window has already been created, and probably also the swap chain as well. If we were to modify the window, wouldn't we then have to re-create the window? That would invalidate the swap chain and require some way to track what to do. Or is there an easier way to do this that I am not seeing right now?