I want to set the item height of a listbox. Before I did that, I figured I would try getting the item height, to make sure I was doing it right. This code should work, but returns 0. The only thing I can think of is either I am using the wrong hwnd, and I need a different one from the gadget, or maybe BlitzPlus listboxes are actually windows listview controls:
Const LB_SETITEMHEIGHT = 416
Const LB_GETITEMHEIGHT = 417
win=CreateWindow("",200,200,400,300)
list=CreateListBox(0,0,100,100,win)
AddGadgetItem list,"test"
hwnd=QueryObject(list,1)
Notify SendMessage(hwnd,LB_GETITEMHEIGHT,0,0)
|