Simple Window Programming Questions
Posted on 2003-03-15
I am developing a Game in GDI for Windows and uses WinAPI.
When I'm running the Game in WinXP everything is OK, but when I'm trying to run it under Win98 or WinME the Game Looses the Graphics and Font Settings that I have written...
I Think that it gottohave with the HDC stuff to do...
Uses the following to print the Graphics:
void GamePaint(HDC hdc)
// Draw The Game Plan...
GamePlan->Draw(hdc, 0, 0);
HDC hDC = GetDC(Game->GetWindow());
BitBlt(hDC, 0, 0, Game->GetWidth(), Game->GetHeight(),
_hOffscreenDC, 0,0, SRCCOPY);
DeleteDC(hDC); // Unsure if I sould delete it or not???
And a Second question:
Does someone have some info about desgining own Windows or some tutorial??