Hi, I’m having some problems with my MDI app. When i move the mouse the viewport keeps blinking!!! How do I stop this!!???
Thanks!!
Probably not a pertinent question for this forum but…
Hi, I’m having some problems with my MDI app. When i move the mouse the viewport keeps blinking!!! How do I stop this!!???
Thanks!!
Probably not a pertinent question for this forum but…
Originally posted by uNsignedINT:
Hi, I’m having some problems with my MDI app. When i move the mouse the viewport keeps blinking!!!
How do you inintialize the pixel format for a MDI window? Is that you forgot to specify PFD_DOUBLEBUFFER for its pixel format?
This is my function to set pixel format…
BOOL CCADCorTexView::SetWindowPixelFormat(HDC hDC)
{
PIXELFORMATDESCRIPTOR pixelDesc;
pixelDesc.nSize = sizeof(PIXELFORMATDESCRIPTOR);
pixelDesc.nVersion = 1;
pixelDesc.dwFlags = PFD_DRAW_TO_WINDOW |
PFD_DRAW_TO_BITMAP |
PFD_SUPPORT_OPENGL |
PFD_SUPPORT_GDI |
PFD_DOUBLEBUFFER | …
Originally posted by uNsignedINT:
PFD_SUPPORT_OPENGL |
PFD_SUPPORT_GDI |
PFD_DOUBLEBUFFER
look what MSDN says:
“PFD_SUPPORT_GDI: The buffer supports GDI drawing. This flag and PFD_DOUBLEBUFFER are mutually exclusive in the current generic implementation.”
and vice versa.
Thanks!! I got it running smooth now!
i am glad for ya!