COMBO BOX OPENED AUTOMATICALLY

forum.advanced.programming (1998-2005)
Luigi

COMBO BOX OPENED AUTOMATICALLY

Post by Luigi » 24 Nov 2004, 18:17

 Posted by:  Luigi 

Hello everybody.
I want, if possible, to view the content of a combo box where I set focus on
it. In other words, I want to simulate the SAM_DropDown message when the
user, or the program, sets the focus on the combo. I tried to send
On SAM_SetFocus
Call SalSendMsg(cmb1, SAM_DropDown,0,0)
On SAM_DropDown
Call SalListPopulate( ...)
but it doesn't work fine. The message is processed, the list is populated
but the combo is not opened. Any idea? Thanks.

--
----------------------------------
gigi
----------------------------------

Pawel Streich

Re: COMBO BOX OPENED AUTOMATICALLY

Post by Pawel Streich » 24 Nov 2004, 18:26

 Posted by:  Pawel Streich 

Number: CB_SHOWDROPDOWN = 0x014F

Call SalSendMsg( hWndCombo, CB_SHOWDROPDOWN, TRUE, 0 )

Regards,

Pawel

Luigi

Re: COMBO BOX OPENED AUTOMATICALLY

Post by Luigi » 25 Nov 2004, 10:28

 Posted by:  Luigi 

Great, Pawel, it runs well. Thank you.

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 0 guests