Changeset 243 for trunk/include/private
- Timestamp:
- Jan 29, 2003, 7:41:39 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/private/cnr.h
r242 r243 35 35 #define WC_CCTL_CNR_DETAILS "ComctlCnrDtls" 36 36 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 38 45 39 46 #define COLUMN_PADDING_X 7 … … 53 60 const FIELDINFO *pfi; // ptr to fieldinfo for this column 54 61 55 LONG cx Total;// current width of the column (excluding padding);62 LONG cxContent; // current width of the column (excluding padding); 56 63 // -- if pfi->cxWidth == 0, this is the computed auto-size; 57 64 // -- otherwise this is a copy of the pfi->cxWidth value … … 61 68 SIZEL szlTitleData; // dimensions of title data (excluding padding) 62 69 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 64 72 65 73 } DETAILCOLUMN, *PDETAILCOLUMN; … … 79 87 *precc, // ptr to app's RECORDCORE buffer 80 88 *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) 81 97 82 98 SIZEL szlContent; // space that records needs in current cnr view … … 84 100 SIZEL szlBox; // space that records needs in current cnr view 85 101 // (including padding) 86 LONG yOfs; // y offset of the top of this record's rectangle102 // LONG yOfs; // y offset of the top of this record's rectangle 87 103 // from the top of the cnr workspace. Positive 88 104 // values mean the record is further down. … … 109 125 /* 110 126 *@@ CNRDATA: 111 * 127 * private container data, allocated on WM_CREATE and 128 * stored at QWL_USER + 1 in the container main and 129 * subwindows. 112 130 */ 113 131 … … 117 135 dwdContent; 118 136 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 122 141 123 142 LINKLIST llAllocatedFIs; // contains PFIELDINFO's that were allocated, auto-free … … 133 152 134 153 // 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 145 158 146 159 LONG cyColTitlesContent, // if CnrInfo.flWindowAttr & CA_DETAILSVIEWTITLES, height of … … 148 161 cyColTitlesBox; // ... and including those 149 162 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 153 179 154 180 } CNRDATA, *PCNRDATA; 155 181 156 182 // 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 165 197 166 198 #define DDFL_ALL 0xFFFF … … 172 204 ********************************************************************/ 173 205 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, 175 212 PCSZ pcsz, 176 213 PRECTL prcl, … … 178 215 PFONTMETRICS pfm); 179 216 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, 181 232 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); 182 246 183 247 VOID cdtlRecalcDetails(PCNRDATA pData,
Note:
See TracChangeset
for help on using the changeset viewer.