Go to the source code of this file.
|
bool | listview_helper::ensure_visible (HWND p_listview, unsigned p_index) |
|
void | listview_helper::get_item_text (HWND p_listview, unsigned p_index, unsigned p_column, pfc::string_base &p_out) |
|
unsigned | listview_helper::insert_column (HWND p_listview, unsigned p_index, const char *p_name, unsigned p_width_dlu) |
|
unsigned | listview_helper::insert_item (HWND p_listview, unsigned p_index, const char *p_name, LPARAM p_param) |
|
unsigned | listview_helper::insert_item2 (HWND p_listview, unsigned p_index, const char *col0, const char *col1, LPARAM p_param) |
|
unsigned | listview_helper::insert_item3 (HWND p_listview, unsigned p_index, const char *col0, const char *col1, const char *col2, LPARAM p_param) |
|
bool | listview_helper::is_item_selected (HWND p_listview, unsigned p_index) |
|
int | ListView_GetColumnCount (HWND listView) |
|
void | ListView_GetContextMenuPoint (HWND p_list, LPARAM p_coords, POINT &p_point, int &p_selection) |
|
void | ListView_GetContextMenuPoint (HWND p_list, POINT p_coords, POINT &p_point, int &p_selection) |
|
static bool | ProbeColumn (HWND view, int index) |
|
bool | listview_helper::select_single_item (HWND p_listview, unsigned p_index) |
|
void | listview_helper::set_item_selection (HWND p_listview, unsigned p_index, bool p_state) |
|
bool | listview_helper::set_item_text (HWND p_listview, unsigned p_index, unsigned p_column, const char *p_name) |
|
int ListView_GetColumnCount |
( |
HWND |
listView | ) |
|
Definition at line 158 of file listview_helper.cpp.
165 PFC_ASSERT(!
"Shouldn't get here!");
172 PFC_ASSERT( lo < hi );
173 const int mid = lo + (hi - lo) / 2;
174 PFC_ASSERT( lo < mid && mid < hi );
static bool ProbeColumn(HWND view, int index)
void ListView_GetContextMenuPoint |
( |
HWND |
p_list, |
|
|
LPARAM |
p_coords, |
|
|
POINT & |
p_point, |
|
|
int & |
p_selection |
|
) |
| |
Definition at line 119 of file listview_helper.cpp.
120 POINT pt = {(short)LOWORD(p_coords),(short)HIWORD(p_coords)};
void ListView_GetContextMenuPoint(HWND p_list, LPARAM p_coords, POINT &p_point, int &p_selection)
void ListView_GetContextMenuPoint |
( |
HWND |
p_list, |
|
|
POINT |
p_coords, |
|
|
POINT & |
p_point, |
|
|
int & |
p_selection |
|
) |
| |
Definition at line 124 of file listview_helper.cpp.
125 if (p_coords.x == -1 && p_coords.y == -1) {
128 ListView_EnsureVisible(p_list, firstsel, FALSE);
130 WIN32_OP_D( ListView_GetItemRect(p_list,firstsel,&rect,LVIR_BOUNDS) );
131 p_point.x = (rect.left + rect.right) / 2;
132 p_point.y = (rect.top + rect.bottom) / 2;
133 WIN32_OP_D( ClientToScreen(p_list,&p_point) );
136 WIN32_OP_D(GetClientRect(p_list,&rect));
137 p_point.x = (rect.left + rect.right) / 2;
138 p_point.y = (rect.top + rect.bottom) / 2;
139 WIN32_OP_D(ClientToScreen(p_list,&p_point));
141 p_selection = firstsel;
146 WIN32_OP_D( ScreenToClient(p_list,&client) );
147 LVHITTESTINFO
info = {};
149 p_selection = ListView_HitTest(p_list,&info);
void info(const char *p_message)
static int ListView_GetFirstSelection(HWND p_listview)
static bool ProbeColumn |
( |
HWND |
view, |
|
|
int |
index |
|
) |
| |
|
static |
Definition at line 154 of file listview_helper.cpp.
155 LVCOLUMN col = {LVCF_ORDER};
156 return !! ListView_GetColumn(view, index, &col);