@@ -14,7 +14,7 @@ LRESULT CALLBACK InternalWindowProc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM
1414
1515
1616
17- Win32RenderWindow::Win32RenderWindow ( unsigned int width, unsigned int height ) :
17+ Win32RenderWindow::Win32RenderWindow (unsigned int width, unsigned int height, const std::wstring& caption ) :
1818 handle( 0 )
1919{
2020 WNDCLASSEX wc;
@@ -32,14 +32,14 @@ Win32RenderWindow::Win32RenderWindow( unsigned int width, unsigned int height )
3232 wc.hCursor = LoadCursor (NULL , IDC_ARROW);
3333 wc.hbrBackground = (HBRUSH)GetStockObject (BLACK_BRUSH);
3434 wc.lpszMenuName = NULL ;
35- wc.lpszClassName = L" HieroglyphWin32 " ;
36- wc.hIconSm = LoadIcon (NULL , IDI_APPLICATION );
35+ wc.lpszClassName = L" N3888_RefImpl " ;
36+ wc.hIconSm = LoadIcon (NULL , IDI_ASTERISK );
3737
3838
3939 // Register the window class
4040 RegisterClassEx (&wc);
4141
42- // Record the desired device size
42+ // Record the desired client window size
4343 RECT rc;
4444 rc.top = rc.left = 0 ;
4545 rc.right = width;
@@ -59,7 +59,7 @@ Win32RenderWindow::Win32RenderWindow( unsigned int width, unsigned int height )
5959 handle = CreateWindowEx (
6060 NULL , // extended style
6161 wc.lpszClassName , // class name
62- L" N3888_RefImpl " , // instance title
62+ caption. c_str () , // instance title
6363 (WS_OVERLAPPEDWINDOW | WS_VISIBLE), // window style
6464 lleft, ltop, // initial x, y
6565 lwidth, // initial width
0 commit comments