Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Comboboxes Not Working In Visual Studio 2010
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
ngaloppo
Posted: Jun 19 2012, 05:54 PM


Newbie


Group: Members
Posts: 1
Member No.: 35051
Joined: 19-June 12



Hi,

I'm having trouble, after converting some existing filter samples from older versions of VS to VS2010, with getting combo boxes working correctly in the filter config dialogs.

I'm using the VDXVideoFilterDialog mechanism, and putting a set of SendMessages() in "FilterDialog::OnInit()"

CODE

SendMessage(hwndItem, CB_ADDSTRING, 0, (LPARAM)s_sadAdjustModeNames[i]);


The first entry is visible when the dialog comes up, but when clicking the down arrow of the combobox, the list is empty.

Does anyone have existing source code examples built with VS2010, that include working combo boxes in the filter config dialog? Thanks!

UPDATE: Nevermind, apparently, you need to *invisibly* resize the dropdown size. Doh. http://msdn.microsoft.com/en-us/library/4cta1x1t.aspx
 
     Top
phaeron
Posted: Jun 24 2012, 03:21 AM


Virtualdub Developer


Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02



Yeah, this one tripped me up at first, too. For some reason, when you add a combo box in Visual Studio, it defaults to showing zero items in the drop-down list. Very useful.

By the way, you should check that the character set setting is correct, too -- some of the samples may assume multi-byte character set (MBCS), but current versions of Visual Studio like to set up projects to use Unicode, which will break existing code that's using SendMessage() instead of SendMessageA() or SendMessageW().
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
1 replies since Jun 19 2012, 05:54 PM Track this topic | Email this topic | Print this topic

<< Back to VirtualDub Filters and Filter Development