Printable Version of Topic
Click here to view this topic in its original format
Unofficial VirtualDub Support Forums > VirtualDub Filters and Filter Development > Comboboxes Not Working In Visual Studio 2010


Posted by: ngaloppo Jun 19 2012, 05:54 PM
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

Posted by: phaeron Jun 24 2012, 03:21 AM
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().

Powered by Invision Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)