Original Post
Right after the CreateWindow call which places an empty 320x240 window in the center of the screen I''m attempting to load a bitmap on to that window with BeginPaint and the HDC to create a splash screen that displays while all the DirectX components load up.
At hDC = BeginPaint(m_hWnd, &ps), a second area of 320x240 is created in the top left corner of the screen and the bitmap shows up both where it''s supposed to and in that top left corner.
Besides having two copies of the bitmap it''s working as it''s supposed to. I''d just like to know what''s causing the second window to show up.
Ben
IcarusIndie.com [ The Rabbit Hole | The Labyrinth | DevZone | Gang Wars | The Wall | Hosting | Dot Com ]
//load bitmap to initial window HBITMAP splash; PAINTSTRUCT ps; HDC hDC; splash= (HBITMAP)LoadImage(NULL, "graphics/loadlogo.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE); hDC = BeginPaint(m_hWnd, &ps); DrawState(hDC, NULL, NULL, (LPARAM)splash, 0, 0, 0, 320, 240, DST_BITMAP | DSS_NORMAL); EndPaint(m_hWnd, &ps); delete(splash);