blob: 1814e87d7b988f6793edcad727a38d6224668254 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// 4 december 2014
typedef struct rowcol rowcol;
struct rowcol {
intptr_t row;
intptr_t column;
};
static rowcol clientCoordToRowColumn(struct table *t, POINT pt)
{
// TODO
}
// same as client coordinates, but stored in a lParam (like the various mouse messages provide)
static rowcol lParamToRowColumn(struct table *t, LPARAM lParam)
{
POINT pt;
pt.x = GET_X_LPARAM(lParam);
pt.y = GET_Y_LPARAM(lParam);
return clientCoordToRowColumn(t, pt);
}
// returns TRUE if the row is visible and thus has client coordinates; FALSE otherwise
static BOOL rowColumnToClientCoord(struct table *t, rowcol rc, struct POINT *pt)
{
// TODO
}
// TODO idealCoordToRowColumn/rowColumnToIdealCoord?
|