-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathNSWFL_ListBox.H
46 lines (43 loc) · 2.54 KB
/
NSWFL_ListBox.H
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright © NetworkDLS 2023, All rights reserved
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef _NSWFL_LISTBOX_H_
#define _NSWFL_LISTBOX_H_
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
namespace NSWFL {
namespace ListBox {
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
int InsertListBoxItem(HWND hWnd, char* sInStr, int iMaxItems, int iInsertPos);
int InsertListBoxItem(HWND hWnd, char* sInStr, int iInsertPos);
int ClearListBox(HWND hWnd);
int DeleteListBoxItem(HWND hWnd, int iItemPos);
int CountListBoxItems(HWND hWnd);
int SelectMultipleListBoxItem(HWND hWnd, int iItemPos, bool bSelect);
int SelectListBoxItem(HWND hWnd, int iItemPos);
int GetCurrentListBoxItem(HWND hWnd);
int GetListBoxItemText(char* sOutVal, int iMaxSz, HWND hWnd, int iItemPos);
int GetListBoxItemText(char* sOutVal, int iMaxSz, HWND hWnd);
int GetListBoxItemLength(HWND hWnd, int iItemPos);
int SetHorizontalListBoxExtent(HWND hWnd, int iHorzExtent);
int InsertListBoxItem(HWND hWnd, char* sInStr);
char** ListBoxToCharacterArray(HWND hWnd, int* iOutItemCount);
int* ListBoxToIntegerArray(HWND hWnd, int* iOutItemCount);
int DeleteListBoxItem(HWND hWnd);
int PopListBoxFromIntegerArray(HWND hWnd, int* iItemList, int iItems);
int PopListBoxFromStringArray(HWND hWnd, char** sItemList, int iItems);
int FindListBoxString(HWND hWnd, const char* sString, int iStartIndex);
int FindListBoxString(HWND hWnd, const char* sString);
int FindExactListBoxString(HWND hWnd, const char* sString, int iStartIndex);
int FindExactListBoxString(HWND hWnd, const char* sString);
int DeleteSingleListBoxItemFriendly(HWND hWnd);
int InsertListBoxItemNoDuplicate(HWND hWnd, char* sInStr);
int InsertListBoxItemNoDuplicate(HWND hWnd, char* sInStr, int iInsertPos);
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
} //namespace::ListBox
} //namespace::NSWFL
#endif