Re: [GD-Windows] Windows paints my window!
Brought to you by:
vexxed72
From: Javier A. <ja...@py...> - 2002-09-09 18:46:38
|
Ignacio Castaño <cas...@ya...> wrote: > Are you returning TRUE to the WM_ERASEBKGND message? This is in our windowproc: case WM_PAINT: { PAINTSTRUCT paint; BeginPaint((HWND)hWnd, &paint); EndPaint((HWND)hWnd, &paint); return 0L; } case WM_ERASEBKGND: return 1L; And this is our window class setup: wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS; wcex.lpfnWndProc = (WNDPROC)WindowProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = (HINSTANCE)m_hInstance; wcex.hIcon = LoadIcon((HINSTANCE)m_hInstance, "PRAETORIANS"); wcex.hCursor = LoadCursor(NULL, IDC_ARROW); wcex.hbrBackground = NULL; wcex.lpszMenuName = NULL; wcex.lpszClassName = "Ventana"; wcex.hIconSm = LoadIcon(wcex.hInstance, "SMALL.ICO"); RegisterClassEx(&wcex); > Javier Arevalo wrote: >> Hi! >> >> During long load times (not so long actually, but hey) Windows >> sometimes seems to decide that the game's window needs repainting >> and erasing. The app is not responding to messages because it's busy >> loading stuff. I thought that setting the hbrBackground of the >> WNDCLASS struct to NULL was enough to prevent this, but it still >> paints the window white. This only happens when the game runs in >> fullscreen mode, never in the windowed mode we use for development. >> Even funnier is that it only started happening a few days ago, but >> we have been unable to find any changes we might have done to the >> Window or DirectX handling code for the past _months_. >> >> Any ideas where to look at? Even the slightest trace of a pointer >> will be greatly appreciated. >> >> Thanks, >> Javier Arevalo >> Pyro Studios > > > _______________________________________________________________ > Copa del Mundo de la FIFA 2002 > El único lugar de Internet con vídeos de los 64 partidos. > ¡Apúntante ya! en http://fifaworldcup.yahoo.com/fc/es/ > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 Javier Arevalo Pyro Studios |