Hi Allan,

try changing this
NOTE: Add InvalidateRect to top ruler.



void AP_Win32Frame::_onSize(int nWidth, int nHeight)
{
        int yTopRulerHeight = 0;
        int xLeftRulerWidth = 0;

        _getRulerSizes(yTopRulerHeight, xLeftRulerWidth);

        if (m_hwndTopRuler)
        {
                MoveWindow(m_hwndTopRuler, 0, 0, nWidth, yTopRulerHeight, TRUE);
                InvalidateRect(m_hwndTopRuler, NULL, TRUE);
        }

        if (m_hwndLeftRuler)
                MoveWindow(m_hwndLeftRuler, 0, yTopRulerHeight,
                                   xLeftRulerWidth, nHeight - yTopRulerHeight, TRUE);

        MoveWindow(m_hwndDocument, xLeftRulerWidth, yTopRulerHeight,
                           nWidth - xLeftRulerWidth, nHeight - yTopRulerHeight, TRUE);
}

Fixes the problem for me.

Bruce.


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Allan Clark
> Sent: Monday, 04 September, 2000 06:33
> To: Abiword-dev
> Subject: To Windows Developers
>
>
> Has anyone else noticed that if you drag the bottom toolbar upwards (and
> generally play about with the toolbars) the topruler doesn't redraw itself
> properly. (As the subject suggests I think this only happens in Windows)
> anyway I am working on a more configurable toolbar (still in foetus stage)
> and it doesn't draw itself correctly either, so that leads me to believe
> that this is actually a Windows bug, in the Win32 API toolbar component
> probably, I just thought I would ask others if they agree with me
> on this or
> should I try and fix the bug (in both my new toolbar and the topruler).
> Any comments?
>
> Allan Clark
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
>




Reply via email to