Changeset 1550 for trunk/dll/findrec.c


Ignore:
Timestamp:
Nov 3, 2010, 3:50:42 AM (15 years ago)
Author:
Gregg Young
Message:

This actually fixes the double names in the tree container. It also streamlines the initial scan code by eliminating multiple redundant scans.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/findrec.c

    r1549 r1550  
    124124  qrecrct.fsExtent = (CMA_ICON | CMA_TEXT | CMA_TREEICON);
    125125  if (!WinSendMsg(hwndCnr,
    126                   CM_QUERYRECORDRECT, MPFROMP(&rcl), MPFROMP(&qrecrct))) {
     126                  CM_QUERYRECORDRECT, MPFROMP(&rcl), MPFROMP(&qrecrct))) {
    127127    qrecrct.fsExtent = CMA_TEXT | CMA_TREEICON;
    128128    WinSendMsg(hwndCnr, CM_QUERYRECORDRECT, MPFROMP(&rcl), MPFROMP(&qrecrct));
     
    134134  WinSendMsg(hwndCnr,
    135135             CM_SCROLLWINDOW,
    136              MPFROMSHORT(CMA_VERTICAL),
    137              MPFROMLONG((rclViewport.yTop - (rcl.yTop) - 4)));
     136             MPFROMSHORT(CMA_HORIZONTAL), MPFROMLONG(rcl.xRight - rclViewport.xRight));
    138137  WinSendMsg(hwndCnr,
    139138             CM_SCROLLWINDOW,
    140              MPFROMSHORT(CMA_HORIZONTAL), MPFROMLONG(rcl.xRight - rclViewport.xRight));
     139             MPFROMSHORT(CMA_VERTICAL),
     140             MPFROMLONG((rclViewport.yTop - (rcl.yTop) - 4)));
    141141}
    142142
Note: See TracChangeset for help on using the changeset viewer.