Commit (STABLE): Re: Commit (HEAD): Re: Win32 Patch

From: Marc Maurer (j.m.maurer_at_student.utwente.nl)
Date: Tue Apr 27 2004 - 18:23:09 EDT

  • Next message: E. A. Zen: "Re: Commit (STABLE): Re: commit (head): Re: Patch: Bug 6208 - Can't insert tabstop in top half of rulerbar"

    Backport: Fix Left Ruler from disapearing PageWidth zoom on Win32
    (MPritchett)
                                                                                    
    CVS:
    ----------------------------------------------------------------------
    CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
    CVS:
    CVS: Committing in .
    CVS:
    CVS: Modified Files:
    CVS: Tag: ABI-2-0-0-STABLE
    CVS: ap_Win32LeftRuler.cpp
    CVS:
    ----------------------------------------------------------------------

    Op di 20-04-2004, om 15:29 schreef Marc Maurer:
    > Will backport later.
    >
    > Marc
    >
    >
    > Fix Left Ruler from disapearing PageWidth zoom on Win32 (MPritchett)
    >
    > CVS:
    > ----------------------------------------------------------------------
    > CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
    > CVS:
    > CVS: Committing in .
    > CVS:
    > CVS: Modified Files:
    > CVS: src/wp/ap/win/ap_Win32LeftRuler.cpp
    > CVS:
    > ----------------------------------------------------------------------
    >
    >
    > On Tue, 2004-04-20 at 03:41, Michael D. Pritchett wrote:
    > > Hey Marc -
    > >
    > > This patch fixes some bad Win32 behavior. We don't need to trap WM_SIZE
    > > messages for the left ruler and update the Width and Height. This all
    > > happens in XP land. Doing so causes the left ruler to disappear in
    > > PageWidth zoom.
    > >
    > > Removing this message trap appears to have no ill affects (note: not
    > > used for top ruler).
    > >
    > > Cheers!
    > >
    > >
    > > Michael D. Pritchett
    > >
    > > ______________________________________________________________________
    > > Index: src/wp/ap/win/ap_Win32LeftRuler.cpp
    > > ===================================================================
    > > RCS file: /cvsroot/abi/src/wp/ap/win/ap_Win32LeftRuler.cpp,v
    > > retrieving revision 1.19
    > > diff -u -r1.19 ap_Win32LeftRuler.cpp
    > > --- src/wp/ap/win/ap_Win32LeftRuler.cpp 18 Apr 2004 13:48:39 -0000 1.19
    > > +++ src/wp/ap/win/ap_Win32LeftRuler.cpp 20 Apr 2004 01:31:50 -0000
    > > @@ -205,16 +205,6 @@
    > > case WM_RBUTTONDBLCLK:
    > > return 0;
    > >
    > > - case WM_SIZE:
    > > - {
    > > - int nWidth = LOWORD(lParam);
    > > - int nHeight = HIWORD(lParam);
    > > -
    > > - pRuler->setHeight(nHeight);
    > > - pRuler->setWidth(nWidth);
    > > - return 0;
    > > - }
    > > -
    > > case WM_PAINT:
    > > {
    > > PAINTSTRUCT ps;

    -- 
    Marc Maurer <j.m.maurer_at_student.utwente.nl>
    


    This archive was generated by hypermail 2.1.4 : Tue Apr 27 2004 - 18:19:49 EDT