Drop Down in ListView

forum.advanced.programming (1998-2005)
Beni Bollin

Drop Down in ListView

Post by Beni Bollin » 31 Mar 2005, 22:07

 Posted by:  Beni Bollin 

Hello all

I use cListViewDropDown to populate some information in a list. Now I
want to automatically drop down (open the list view) the list, when
somebody is clicking on a pushbutton. Like the function
VisListSetDropdownState for a combo box.

I was trying to sending the keystrokes ALT and DOWN with

! Call keybd_event( VK_Alt, 0x0,0,0 )
! Call keybd_event( VK_Down, 0x0,0,0 )
! Call keybd_event( VK_Down, 0x0,2,0 )
! Call keybd_event( VK_Alt, 0x0,2,0 )

But I also was not successful.

Is there any way to open a list view (which seems to be like a combo
box) automatically?

Thanks in advance and best regards
Beni Bollin

Beni Bollin

Re: Drop Down in ListView

Post by Beni Bollin » 01 Apr 2005, 06:22

 Posted by:  Beni Bollin 

Hi to all

sorry, I found the trick, I forget to set the focus to this list view.
The keybd_event-functions were working very good.

Thanks
Beni

klaushaidinger
Austria
Posts: 124
Joined: 13 Dec 2017, 06:08
Location: Austria

Re: Drop Down in ListView

Post by klaushaidinger » 30 Dec 2019, 15:37

Hi!

That´s it! Thank you!!!!

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 0 guests