Hi David, I have to realize that it is too long time ago I wrote code for Windows last. First, I used GetDC/ReleaseDC to get the DC for WM_PAINT where (I suppose) it should have been BeginPaint/EndPaint. Second, I used the hWnd entered through the WndProc call for one of the functions and the locally stored m_hWnd for the other. I.e. GetDC(hWnd) ReleaseDC(m_hWnd). I don't hnow if it causes any trouble, but it is not very nice. Anyway, now I can prevent Windows from drawing the tabs, and the spin control is controlled by Windows (except in the vertical alignment: they are painted but not handled :mad:). The remaining problem is that I have to draw the whole tab background by myself. But I expect it to be a relatively small problem. Best regards Anton
Anton112