Changeset 243 for trunk/include/private


Ignore:
Timestamp:
Jan 29, 2003, 7:41:39 PM (23 years ago)
Author:
umoeller
Message:

New build system, multimedia, other misc fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/private/cnr.h

    r242 r243  
    3535    #define WC_CCTL_CNR_DETAILS     "ComctlCnrDtls"
    3636
    37     extern const SYSCOLORSET G_scsCnr;
     37    extern const CCTLCOLOR G_scsCnr[];
     38
     39    #define CNRCOL_HILITEBGND   2
     40    #define CNRCOL_HILITEFGND   3
     41    #define CNRCOL_BORDER       4
     42    #define CNRCOL_EDITBGND     5
     43    #define CNRCOL_EDITFGND     6
     44    #define CNRCOL_SIZINGBOX    7
    3845
    3946    #define COLUMN_PADDING_X        7
     
    5360        const FIELDINFO *pfi;           // ptr to fieldinfo for this column
    5461
    55         LONG        cxTotal;            // current width of the column (excluding padding);
     62        LONG        cxContent;          // current width of the column (excluding padding);
    5663                                        // -- if pfi->cxWidth == 0, this is the computed auto-size;
    5764                                        // -- otherwise this is a copy of the pfi->cxWidth value
     
    6168        SIZEL       szlTitleData;       // dimensions of title data (excluding padding)
    6269
    63         LONG        xLeft;              // position of column in cnr workspace coordinates
     70        LONG        xLeft;              // left border of column in cnr workspace coordinates;
     71                                        // this includes spacing, i.e. is 0 for the leftmost column
    6472
    6573    } DETAILCOLUMN, *PDETAILCOLUMN;
     
    7987                    *precc,             // ptr to app's RECORDCORE buffer
    8088                    *preccParent;       // parent of record or NULL if root
     89
     90        ULONG       flRecordAttr;       // private copy of record's attributes
     91
     92        ULONG       flInvalidate;       // CMA_TEXTCHANGED et al flags from
     93                                        // CM_INVALIDATERECORD or 0 if record is fresh
     94
     95        POINTL      ptl;                // position of record as calculated by us (in
     96                                        // workspace coordinates)
    8197
    8298        SIZEL       szlContent;         // space that records needs in current cnr view
     
    84100        SIZEL       szlBox;             // space that records needs in current cnr view
    85101                                        // (including padding)
    86         LONG        yOfs;               // y offset of the top of this record's rectangle
     102        // LONG        yOfs;               // y offset of the top of this record's rectangle
    87103                                        // from the top of the cnr workspace. Positive
    88104                                        // values mean the record is further down.
     
    109125    /*
    110126     *@@ CNRDATA:
    111      *
     127     *      private container data, allocated on WM_CREATE and
     128     *      stored at QWL_USER + 1 in the container main and
     129     *      subwindows.
    112130     */
    113131
     
    117135                    dwdContent;
    118136
    119         BOOL        fMiniRecords;
    120 
    121         CNRINFO     CnrInfo;
     137        BOOL        fMiniRecords;       // set to TRUE on WM_CREATE if we have the
     138                                        // CCS_MINIRECORDCORE style bit set
     139
     140        CNRINFO     CnrInfo;            // private container info struct
    122141
    123142        LINKLIST    llAllocatedFIs;     // contains PFIELDINFO's that were allocated, auto-free
     
    133152
    134153        // paint data
    135         FONTMETRICS fm;
    136         COUNTRYSETTINGS2 cs;
    137 
    138         HWND        hwndDetails;        // child of main cnr window
    139 
    140         HWND        hwndVScroll,        // child of hwndDetails
    141                     hwndHScroll;
    142 
    143         LONG        cxScrollBar,
    144                     cyScrollBar;
     154
     155        COUNTRYSETTINGS2 cs;            // current NLS settings for painting CMA_DATE etc.
     156
     157        FONTMETRICS fm;                 // font metrics of current font
    145158
    146159        LONG        cyColTitlesContent, // if CnrInfo.flWindowAttr & CA_DETAILSVIEWTITLES, height of
     
    148161                    cyColTitlesBox;     // ... and including those
    149162
    150         SIZEL       szlWorkarea;        // dimensions of cnr workarea (area that window scrolls over)
    151 
    152         POINTL      ptlScrollOfs;       // scroll ofs: x = 0 means topmost, y = 0 means leftmost
     163        BOOL        fSettingPP;         // anti-recursion flag
     164
     165        // scrolling data
     166
     167        SCROLLABLEWINDOW scrw;
     168
     169        // selection data
     170
     171        PRECORDLISTITEM
     172                    prliCursored;       // currently cursored record (there can only be one ever)
     173
     174        PRECORDLISTITEM
     175                    prliSwipingFirst;   // set to record on which swipe select started; NULL if
     176                                        // we're not currently swipe-selecting
     177        BOOL        fSwipeTurnOn;       // if TRUE, we select records while swiping; if FALSE,
     178                                        // we deselect
    153179
    154180    } CNRDATA, *PCNRDATA;
    155181
    156182    // bits for WM_SEM2
    157     #define DDFL_INVALIDATECOLUMNS     0x0001
    158                 // no. of columns changed
    159 
    160     #define DDFL_INCALIDATERECORDS      0x0002
    161 
    162     #define DDFL_WINDOWSIZECHANGED      0x0004
    163 
    164     #define DDFL_WORKAREACHANGED        0x0008
     183    #define DDFL_INVALIDATECOLUMNS      0x0001
     184                // no. of columns changed, recompute column data
     185
     186    #define DDFL_INVALIDATERECORDS      0x0002
     187                // record data changed, recompute all records and adjust columns
     188
     189    #define DDFL_INVALIDATESOME         0x0004
     190                // some records changed, recompute only those that have szlContent.x == -1
     191
     192    #define DDFL_WINDOWSIZECHANGED      0x0008
     193                // subwindows need repositioning
     194
     195    #define DDFL_WORKAREACHANGED        0x0010
     196                // cnr workarea changed, adjust scrollbars
    165197
    166198    #define DDFL_ALL                    0xFFFF
     
    172204     ********************************************************************/
    173205
    174     VOID cnrDrawString(HPS hps,
     206    VOID ctnrInit(HWND hwnd,
     207                  MPARAM mp2,
     208                  ULONG flMainCnrStyle,
     209                  PDEFWINDATA pdwd);
     210
     211    VOID ctnrDrawString(HPS hps,
    175212                       PCSZ pcsz,
    176213                       PRECTL prcl,
     
    178215                       PFONTMETRICS pfm);
    179216
    180     VOID cnrPresParamChanged(HWND hwnd,
     217    VOID ctnrGetRecordRect(PCNRDATA pData,
     218                          PRECTL prcl,
     219                          const RECORDLISTITEM *prli);
     220
     221    BOOL ctnrRepaintRecord(PCNRDATA pData,
     222                           const RECORDLISTITEM *prli);
     223
     224    ULONG ctnrQuerySelMode(PCNRDATA pData);
     225
     226    BOOL ctnrChangeEmphasis(PCNRDATA pData,
     227                            PRECORDLISTITEM prliSet,
     228                            BOOL fTurnOn,
     229                            ULONG fsEmphasis);
     230
     231    VOID ctnrPresParamChanged(HWND hwnd,
    181232                             ULONG ulpp);
     233
     234    BOOL ctnrSetRecordEmphasis(PCNRDATA pData,
     235                               PRECORDCORE precc,
     236                               BOOL fTurnOn,
     237                               USHORT fsEmphasis,
     238                               BOOL fMouse);
     239
     240    VOID ctnrRecordEnter(PCNRDATA pData,
     241                         const RECORDLISTITEM *prli,
     242                         BOOL fKeyboard);
     243
     244    PLISTNODE ctnrFindListNodeForRecc(PCNRDATA pData,
     245                                      const RECORDCORE *precc);
    182246
    183247    VOID cdtlRecalcDetails(PCNRDATA pData,
Note: See TracChangeset for help on using the changeset viewer.