Changeset 818 for trunk/dll/newview.c


Ignore:
Timestamp:
Aug 30, 2007, 12:40:11 AM (18 years ago)
Author:
Gregg Young
Message:

Reverse horizontal scroll bar behavior in fast internal viewer (no bar with word wrap & hex, bar present with unwrapped text) suppress duplicate error message on zero byte file load

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/newview.c

    r817 r818  
    17951795        else {
    17961796          WinSendMsg(hwnd, UM_SETUP5, MPVOID, MPVOID);
    1797           DosSleep(32); //05 Aug 07 GKY 32
     1797          DosSleep(16); //05 Aug 07 GKY 32
    17981798          return (MRESULT) 1;
    17991799        }
     
    18671867      BOOL invalidate = FALSE;
    18681868
    1869       if (!ad->wrapon && !ad->hex) {
    1870         if (WinQueryWindow(ad->hhscroll, QW_PARENT) == ad->hwndFrame) {
    1871           invalidate = TRUE;
    1872           WinSetOwner(ad->hhscroll, HWND_OBJECT);
    1873           WinSetParent(ad->hhscroll, HWND_OBJECT, TRUE);
    1874           ad->maxx = 0;
    1875           ad->horzscroll = 0;
    1876         }
     1869      if (ad->wrapon || ad->hex) {
     1870        if (WinQueryWindow(ad->hhscroll, QW_PARENT) == ad->hwndFrame) {
     1871          invalidate = TRUE;
     1872          WinSetOwner(ad->hhscroll, HWND_OBJECT);
     1873          WinSetParent(ad->hhscroll, HWND_OBJECT, TRUE);
     1874          ad->maxx = 0;
     1875          ad->horzscroll = 0;
     1876        }
    18771877      }
    18781878      else {
     
    36403640            WinInvalidateRect(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT),
    36413641                                              NEWVIEW_DRAG), NULL, FALSE);
    3642             WinInvalidateRect(ad->hhscroll, NULL, FALSE);
     3642            //WinInvalidateRect(ad->hhscroll, NULL, FALSE);
    36433643          }
    36443644          DosReleaseMutexSem(ad->ScanSem);
     
    36793679            WinInvalidateRect(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT),
    36803680                                              NEWVIEW_DRAG), NULL, FALSE);
    3681             WinInvalidateRect(ad->hhscroll, NULL, FALSE);
     3681            //WinInvalidateRect(ad->hhscroll, NULL, FALSE);
    36823682          }
    36833683          DosReleaseMutexSem(ad->ScanSem);
Note: See TracChangeset for help on using the changeset viewer.