|
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.
|
|
|
|
|
go to the top (of most) CodeProject pages, key 'bitmap' into the search field, Set the selector to 'Articles', press the Enter Key
you should see quite a few articles on bitmaps etc - find the one that most suits your needs and experiment with it
when you have an issue, post back a specific question with some code, rather than a 'help me' or 'please help' ..
|
|
|
|
|
Here's one way (I assume you want to load from a file):
1. Add a picture control to the dialog, be sure to set its type to "bitmap". Change to ID to something meaningful.
2. Using the ClassWizard add a member variable of type CStatic for the control, call it m_Picture .
3. Add the following to your class declaration:
HBITMAP m_hBM;
4. Add the following code to the dialog's OnInitDialog handler:
HBITMAP m_hBM = reinterpret_cast<HBITMAP>(
LoadImage(
NULL,
_T("C:\\130x130.bmp"),
IMAGE_BITMAP,
0,
0,
LR_LOADFROMFILE
)
);
m_Picture.SetBitmap(m_hBM);
5. Add the following in a WM_DESTROY handler:
DeleteObject(m_hBM);
Steve
|
|
|
|
|
:-DHi,
In my project, I need code such as:
one head file:
#include "B.h"
class CA {
void fun(CB *pB);
}
Another head file:
#include "A.h"
class CB {
void fun2(CA *pA);
}
but the including each other will cause compiler error, How to solve that?
thanks.
|
|
|
|