I'm having troubles with the vertical retracer when blitting a lot of images using BitBlt (windows GUI program). The window becomes very flickery.
Is there any way to start the rendering sequency just after the vertical retracer have finished?
I'm also having troubles with a non-working scrollbar. I create it using CreateWindow();
(GlobalInst = the HINSTANCE sent to WinMain)Code:ScrollHandle = CreateWindow("SCROLLBAR", "-+UnusedString+-", WS_CHILD | WS_VISIBLE | SBS_HORZ, 0, 480, 640, 20, hWnd, (HMENU)Scrollbar, GlobalInst, NULL);
Later I set the range using SetScrollInfo();
But the scrollbar won't respond to mouse clicks properly, you cannot "scroll" the scrollbar...Code:SCROLLINFO TempScroll; TempScroll.cbSize = sizeof(SCROLLINFO); TempScroll.fMask = SIF_RANGE | SIF_POS; TempScroll.nMin = 0; TempScroll.nMax = Width-20; TempScroll.nPage = 0; TempScroll.nPos = 0; TempScroll.nTrackPos = 0; SetScrollInfo(ScrollHandle, SB_CTL, &TempScroll, TRUE);
Any idea what could be wrong?