Register | Login
Forum Index > Requests and Feedback > Listbox flags Win32
Author Message
Pages: 1
Molotov
Member
(send private message)

Posts: 49
Topics: 21

Location:
Behind Keyboard
[762] Listbox flags Win32 - posted: 2011-11-20 20:59:47
Thought I should helpout a bit so I gathered these

Code:
/* Listbox return value */
enum LB_RETURNS: DWord {
   LB_OKAY = 0,
   LB_ERR = -1,
   LB_ERRSPACE = -2
}

/* Listbox Style Flags */ 
enum LB_STYLEFLAG: DWord {
  LBS_NOTIFY = 0x0001,
  LBS_SORT = 0x0002,
  LBS_MULTIPLESEL = 0x0008,
  LBS_CHECKBOX = 0x1000,
  LBS_USEICON = 0x2000,
  LBS_AUTOCHECK = 0x4000,
  LBS_AUTOCHECKBOX = LBS_CHECKBOX or LBS_AUTOCHECK,
  LBS_SBALWAYS = 0x8000,
  LBS_OWNERDRAWFIXED = 0x0010,
  LBS_OWNERDRAWVARIABLE = 0x0020,
  LBS_USETABSTOPS = 0x0080,
  LBS_MULTICOLUMN = 0x0200,
  LBS_WANTKEYBOARDINPUT = 0x0400,
  LBS_NOREDRAW = 0x0004,
  LBS_HASSTRINGS = 0x0040,
  LBS_NOINTEGRALHEIGHT = 0x0100,
  LBS_EXTENDEDSEL = 0x0800
}

/* Listbox messages */
enum LB_MESSAGES: DWord {
  LB_ADDSTRING = 0xF180,
  LB_INSERTSTRING = 0xF181,
  LB_DELETESTRING = 0xF182,
  LB_SELITEMRANGEEX = 0xF183,
  LB_RESETCONTENT = 0xF184,
  LB_SETSEL = 0xF185,
  LB_SETCURSEL = 0xF186,
  LB_GETSEL = 0xF187,
  LB_GETCURSEL = 0xF188,
  LB_GETTEXT = 0xF189,
  LB_GETTEXTLEN  = 0xF18A,
  LB_GETCOUNT = 0xF18B,
  LB_SELECTSTRING = 0xF18C,
  LB_DIR = 0xF18D,
  LB_GETTOPINDEX = 0xF18E,
  LB_FINDSTRING = 0xF18F,
  LB_GETSELCOUNT = 0xF190,
  LB_GETSELITEMS = 0xF191,
  LB_SETTABSTOPS = 0xF192,
  LB_GETHORIZONTALEXTENT = 0xF193,
  LB_SETHORIZONTALEXTENT = 0xF194,
  LB_SETCOLUMNWIDTH = 0xF195,
  LB_ADDFILE = 0xF196,
  LB_SETTOPINDEX = 0xF197,
  LB_GETITEMRECT = 0xF198,
  LB_GETITEMDATA = 0xF199,
  LB_SETITEMDATA = 0xF19A,
  LB_SELITEMRANGE = 0xF19B,
  LB_SETANCHORINDEX = 0xF19C,
  LB_GETANCHORINDEX = 0xF19D,
  LB_SETCARETINDEX = 0xF19E,
  LB_GETCARETINDEX = 0xF19F,
  LB_SETITEMHEIGHT = 0xF1A0,
  LB_GETITEMHEIGHT = 0xF1A1,
  LB_FINDSTRINGEXACT = 0xF1A2,
  LB_SETLOCALE = 0xF1A5,
  LB_GETLOCALE = 0xF1A6,
  LB_SETCOUNT = 0xF1A7,
  LB_INITSTORAGE = 0xF1A8,
  LB_ITEMFROMPOINT = 0xF1A9,
  LB_SETTEXT = 0xF1AA,
  LB_GETCHECKMARK = 0xF1AB,
  LB_SETCHECKMARK = 0xF1AC,
  LB_GETITEMADDDATA = 0xF1AD,
  LB_SETITEMADDDATA = 0xF1AE,
  LB_SETSTRCMPFUNC = 0xF1AF,
  LB_MSGMAX = 0xF1B0
}

/* Listbox notification messages */
enum LB_NOTIFY_MESSAGES: DWord {
  LBN_ERRSPACE = 255,
  LBN_SELCHANGE = 1,
  LBN_DBLCLK = 2,
  LBN_SELCANCEL = 3,
  LBN_SETFOCUS = 4,
  LBN_KILLFOCUS = 5,
  LBN_CLICKCHECKMARK = 6,
  LBN_CLICKED = 7,
  LBN_ENTER = 8
}


"Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[763] - posted: 2011-11-20 21:01:55
very nice list, thanks, i will add them smile

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Molotov
Member
(send private message)

Posts: 49
Topics: 21

Location:
Behind Keyboard
[765] - posted: 2011-11-20 21:08:12
Code:
/* Listbox return value */
enum LB_RETURNS: DWord {
   LB_OKAY = 0,
   LB_ERR = -1,
   LB_ERRSPACE = -2
}


will have to be

Code:
const LB_OKAY = 0;
const LB_ERR = -1;
const LB_ERRSPACE = -2;


"Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b
Molotov
Member
(send private message)

Posts: 49
Topics: 21

Location:
Behind Keyboard
[767] - posted: 2011-11-20 21:15:35
After I had a look around in messages.zir i realized only these were missing.. LoL neve code when you´re tired
Code:
/* Listbox return value */
const LB_OKAY = 0;
const LB_ERR = -1;
const LB_ERRSPACE = -2;

/* Listbox Style Flags */ 
enum LB_STYLEFLAG: DWord {
  LBS_NOTIFY = 0x0001,
  LBS_SORT = 0x0002,
  LBS_MULTIPLESEL = 0x0008,
  LBS_CHECKBOX = 0x1000,
  LBS_USEICON = 0x2000,
  LBS_AUTOCHECK = 0x4000,
  LBS_SBALWAYS = 0x8000,
  LBS_OWNERDRAWFIXED = 0x0010,
  LBS_OWNERDRAWVARIABLE = 0x0020,
  LBS_USETABSTOPS = 0x0080,
  LBS_MULTICOLUMN = 0x0200,
  LBS_WANTKEYBOARDINPUT = 0x0400,
  LBS_NOREDRAW = 0x0004,
  LBS_HASSTRINGS = 0x0040,
  LBS_NOINTEGRALHEIGHT = 0x0100,
  LBS_EXTENDEDSEL = 0x0800
}
const LBS_AUTOCHECKBOX = LBS_CHECKBOX or LBS_AUTOCHECK;


"Lerning new things is what life is all about, if you are always doing the same old things day in and day out you might aswell just kill yourself." - ME d^_^b
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 2 user(s) online. 0 member(s) and 2 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd