|
CComboboxEx::FindString is not supported.
Do I have to do the search manually?
|
|
|
|
|
Sorry for my first reply, didn't scroll down far enough in docs. I guess you'll have to either brute force it or maintain a searchable array separate from the combobox itself. Since it's ownerdrawn, don't you have to maintain the array yourself anyway? If not, why not try it that way?
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
so, I think I should use GetItem, and compare with each cbi.pszText.
|
|
|
|
|
Call GetComboBoxCtrl() to get the CComboBox object and then call FindString() on that.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
|
Does calling FindStringExact() work on that combo box?
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I also doesn't work.
I've done it by comparing item by item.
Thank you all the same.
|
|
|
|
|
followait wrote: I also doesn't work.
It should. ComboBoxEx controls definitely forward the CB_FINDSTRINGEXACT message to their child ComboBox control (see here[^])
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I m working on a web project and i want to implement the thing which is implemented in this site (codeproject) i.e when we click a message its description becomes visible and when we again click it disappers............similar to this message page
Do good and have good.
|
|
|
|
|
Hi,
I don't want to see so many files, and it is not convenient to take so many files to my friends. So how can I generate a single .exe file from several files (with extension .exe and .dll) under "Debug" directory? Of course, it must work.
it is a win32 console application.
|
|
|
|
|
have you try to generate a release version?
|
|
|
|
|
I tried just now, result is the same.
the project generate a the .exe file, but I need a dll which generate by another project to run with it, and I must set the two project output to the same outputDir.
|
|
|
|
|
Which DLLs are you linking against?
If it's the C library and the MFC library, you can change your linker <edit>settings</edit> to link to them statically, rather than dynamically.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
the dll I want to link is built by another project of the same solution.
|
|
|
|
|
The only reasonable way you can include it in your executable is to build it as a static library rather than a DLL, and link to it statically instead of dynamically.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Do you mean I should use dllimport statements in my source?
|
|
|
|
|
Huh? No. Recompile your DLL as a static library - change its project settings to compile as a static library rather than a DLL.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi All,
currently i am developing an application for audio playback, including local and online resources. I planned to use WMP SDK to help, however, one of my function needs me to be able to select/change the default audio device, however, it is not support by the SDK. I would like to know is there any other method to do so?
(just like Skype/WMP itself hae similar function)
thanks a lot~
|
|
|
|
|
You have to change the values of the following registry keys...
HKEY_CURRENT_USER\Software\Microsoft\Multimedia\Sound Mapper\...
Set value for Playback
Set value for Record
Nibu thomas
Software Developer
|
|
|
|
|
Thanks for you reply, however, i use regedit and cannot locate the key you mention.... any suggestion?
thanks
|
|
|
|
|
I have it and you should also have it. Please check again.
Nibu thomas
Software Developer
|
|
|
|
|
i have tried to export the registry and check but still fail to found...it sounds strange ..
|
|
|
|
|
Quite strange. You should be having one.
BTW what's the need for exporting registry.
Nibu thomas
Software Developer
|
|
|
|
|
Just export to search in UltraEdit for confirm issue ^^
Really thanks for your help ^^
|
|
|
|
|
i was wondering if it would be possible to load a bitmap image into a dialog-based application, to be displayed like a logo for a window and if so, possibly how i would go about doing so.
|
|
|
|