My source code seems right. I don't know what the problem is. Nothing would appear.
Printable View
My source code seems right. I don't know what the problem is. Nothing would appear.
Okay, I fixed it. Take out our BeginPaint and EndPaint from your RenderScene function. Move those functions to WM_PAINT message. All you need to do in that message is beginpaint and then immediately endpaint. It's important so do it. Then your RenderScene should look like this:
Good luck.Code:VOID RenderScenery( )
{
DisplayBitmap(GetDC(WIN_HANDLE), bRect, 0, 0, 50, 50);
}
You should call ReleaseDC before you return from the function.