From: Marcos A. G. <mar...@uo...> - 2004-05-09 21:20:39
|
> I have changed the combobox style from CBS_DROPDOWNLIST to CBS_DROPDOWN, > it's allow the user change the supplied options. But the question is: How to > get the value typed by user ? Or, i need to get the string value typed by > the user. Rodrigo, Try this: 1. Use FindWindowEx to get the handle of the edit control: hedit := FindWindowEx( oCombo:handle, 0, "Edit", Nil ) 2. Get the text of the edit control. The function FindWindowEx: HB_FUNC( FINDWINDOWEX ) { hb_retnl( (LONG) FindWindowEx( (HWND) hb_parnl(1), (HWND) hb_parnl(2), (LPCSTR) hb_parc(3), (LPCSTR) hb_parc(4) ) ) ; } Regards, Marcos Gambeta --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.679 / Virus Database: 441 - Release Date: 7/5/2004 |