Mercurial > dwindows
comparison dw.h @ 986:87dc0f5f96d0
Fix return type of dw_listbox_selected() to be "int" instead of "unsigned int" to allow -1 return.
Changed return values of a number of functions to be consistent across platforms and use the defines.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 07 May 2011 05:14:06 +0000 |
parents | 57cb9edb8944 |
children | 297f2e790e57 |
comparison
equal
deleted
inserted
replaced
985:cfc0777aceb5 | 986:87dc0f5f96d0 |
---|---|
1482 void API dw_listbox_set_top(HWND handle, int top); | 1482 void API dw_listbox_set_top(HWND handle, int top); |
1483 void API dw_listbox_select(HWND handle, int index, int state); | 1483 void API dw_listbox_select(HWND handle, int index, int state); |
1484 void API dw_listbox_delete(HWND handle, int index); | 1484 void API dw_listbox_delete(HWND handle, int index); |
1485 void API dw_listbox_get_text(HWND handle, unsigned int index, char *buffer, unsigned int length); | 1485 void API dw_listbox_get_text(HWND handle, unsigned int index, char *buffer, unsigned int length); |
1486 void API dw_listbox_set_text(HWND handle, unsigned int index, char *buffer); | 1486 void API dw_listbox_set_text(HWND handle, unsigned int index, char *buffer); |
1487 unsigned int API dw_listbox_selected(HWND handle); | 1487 int API dw_listbox_selected(HWND handle); |
1488 int API dw_listbox_selected_multi(HWND handle, int where); | 1488 int API dw_listbox_selected_multi(HWND handle, int where); |
1489 void API dw_percent_set_pos(HWND handle, unsigned int position); | 1489 void API dw_percent_set_pos(HWND handle, unsigned int position); |
1490 unsigned int API dw_slider_get_pos(HWND handle); | 1490 unsigned int API dw_slider_get_pos(HWND handle); |
1491 void API dw_slider_set_pos(HWND handle, unsigned int position); | 1491 void API dw_slider_set_pos(HWND handle, unsigned int position); |
1492 unsigned int API dw_scrollbar_get_pos(HWND handle); | 1492 unsigned int API dw_scrollbar_get_pos(HWND handle); |