{{tag>category:"OpenInsight 32-Bit" author:"Kevin Bolitho" author:"[url=http://www.sprezzatura.com]The Sprezzatura Group[/url]"}}
[[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]]
==== Getting RowHeight from a ListBox (OpenInsight 32-Bit) ====
=== At 24 FEB 2004 06:20:58PM Kevin Bolitho wrote: ===
I wish to derive the row height for ListBoxes however so far I have not succeeded. I have been using SendMessage as follows...
In Borland window.h file I see #define LB_GETITEMHEIGHT (WM_USER+34)
If WM_USER is 1024 then I assume that LB_GETITEMHEIGHT is 1058
My code is trial
hWnd=Get_Property(BubCtrl,"HANDLE")
RowHeight=SendMessage(hWnd,1058,1,0)
hWnd returns an integer that looks reasonable for an hWnd however RowHeight is always returned as 0
Has anyone else succeeded in getting the row height for a listbox?
Thanks in advance
----
=== At 24 FEB 2004 07:41PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote: ===
See [url=http://www.revelation.com/Discuss.nsf/f12696d31000b22a8525652b00831bb2/3744fa060e78fe4885256e4500038393?OpenDocument]answer [/url] on main forum...
[url=http://www.sprezzatura.com]The Sprezzatura Group[/url]
[i]World leaders in all things RevSoft[/i]
[img]http://www.sprezzatura.com/zz.gif[/img]
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=075D353B1D05969C85256E4400804366|View this thread on the Works forum...]]