uLib  User mode C/C++ extended API library for Win32 programmers.

Module Description

Additional listbox functions.

Functions

int __cdecl AddListString (HWND hLB, CSTR Fmt,...)
 
int AddListItem (HWND hLB, CSTR Text, LPARAM Data=0)
 

Function Documentation

◆ AddListString()

int __cdecl AddListString ( HWND  hLB,
CSTR  Fmt,
  ... 
)

AddListString formats a string into a 256 char buffer and adds it to the list.

Definition at line 1303 of file UserUtil.cpp.

◆ AddListItem()

int AddListItem ( HWND  hLB,
CSTR  Text,
LPARAM  Data = 0 
)

AddListItem searches the list for the exact Text.
If not found, it's added, and the item data is set to Data.
In either case, the return is the item index, or a listbox error code.

Definition at line 1315 of file UserUtil.cpp.