Changeset 1549 for trunk/dll/findrec.c


Ignore:
Timestamp:
Oct 25, 2010, 3:08:51 AM (15 years ago)
Author:
Gregg Young
Message:

This "fixes" the double entries in the tree container (Ticket 363); it also means the tree ignores the fSwitchTree* variables on startup. The only remaining problem is on the first focus changes between 2 directory containers the directory doesn't always get placed at the top of the tree container after the first switch to each it seems to work fine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/findrec.c

    r1434 r1549  
    1616
    1717#include <string.h>
     18#include <stdlib.h>
    1819
    1920#define INCL_LONGLONG                   // dircnrs.h
     
    2122#include "fm3dll.h"
    2223#include "findrec.h"
     24#include "errutil.h"                    // Dos_Error...
     25
     26//static PSZ pszSrcFile = __FILE__;
    2327
    2428PCNRITEM FindCnrRecord(HWND hwndCnr, CHAR *filename, PCNRITEM pciParent,
     
    126130  WinSendMsg(hwndCnr,
    127131             CM_QUERYVIEWPORTRECT,
    128              MPFROMP(&rclViewport), MPFROM2SHORT(CMA_WINDOW, FALSE));
     132             MPFROMP(&rclViewport), MPFROM2SHORT(CMA_WINDOW, TRUE));
     133  //DbgMsg(pszSrcFile, __LINE__, "TOPPORT %i TOPRCL %i", rclViewport.yTop , rcl.yTop);
    129134  WinSendMsg(hwndCnr,
    130135             CM_SCROLLWINDOW,
    131136             MPFROMSHORT(CMA_VERTICAL),
    132              MPFROMLONG((rclViewport.yTop - rcl.yTop) - 4));
     137             MPFROMLONG((rclViewport.yTop - (rcl.yTop) - 4)));
    133138  WinSendMsg(hwndCnr,
    134139             CM_SCROLLWINDOW,
Note: See TracChangeset for help on using the changeset viewer.