18 |
* along with WinPT; if not, write to the Free Software Foundation, |
* along with WinPT; if not, write to the Free Software Foundation, |
19 |
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 |
*/ |
*/ |
21 |
|
|
22 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
23 |
#include <config.h> |
#include <config.h> |
24 |
#endif |
#endif |
182 |
|
|
183 |
|
|
184 |
int |
int |
185 |
|
listview_del_column (listview_ctrl_t ctx, int pos) |
186 |
|
{ |
187 |
|
ctx->cols--; |
188 |
|
return ListView_DeleteColumn (ctx->ctrl, pos)? 0 : 1; |
189 |
|
} |
190 |
|
|
191 |
|
|
192 |
|
int |
193 |
listview_del_item( listview_ctrl_t ctx, int pos ) |
listview_del_item( listview_ctrl_t ctx, int pos ) |
194 |
{ |
{ |
195 |
int rc = 0; |
int rc = 0; |
360 |
return pos; |
return pos; |
361 |
} |
} |
362 |
|
|
363 |
|
|
364 |
|
void |
365 |
|
listview_setview (listview_ctrl_t ctx, DWORD view) |
366 |
|
{ |
367 |
|
DWORD style = GetWindowLong (ctx->ctrl, GWL_STYLE); |
368 |
|
if ((style & LVS_TYPEMASK) != view) |
369 |
|
SetWindowLong (ctx->ctrl, GWL_STYLE, (style & ~LVS_TYPEMASK) | view); |
370 |
|
} |