|
You can do this by getting the combo box's font (GetFont/WM_GETFONT), calculating the height of the font (GetTextMetrics) and then changing the height of the control (SetWindowPos).
1300 calories of pure beef goodness can't be wrong!
|
|
|
|
|
Thanks for ur reply...
but the issue is i need to set the Combobox font and height based on the CFont* which i get from some other function which we are using internally ....
and even i tried doing SetFont for that Ctrl...but it doesn"t helped me...
|
|
|
|
|
The combo box has an edit control and a list control associated with it so you will need to change the font for those controls as well. You can retrieve a handle to these child controls with a call to GetComboBoxInfo().
1300 calories of pure beef goodness can't be wrong!
|
|
|
|
|
ya im able to get the hwnd to both Editbox and listCtrl but...how can i setfont for the obtained handles....
|
|
|
|
|
Hello Friends
I creatd application in which i m creating a thuumnail using HBITMAP .
Now I want to Insert a small Image(Logo) on that Bitmap that i creatd using HBITMAP.
I m able to write text on that using TextOut but how i can insert image on that?
Thanks in advance
Yogesh
|
|
|
|
|
Look at BitBlt or StretchBlt.
Basically, you create two DCs and select the source and destination bitmaps into each on and Blt away.
|
|
|
|
|
Ya,I got it already.thanks anyway for ur help.
|
|
|
|
|
Hi,
i need source code on how to check whether a new picture has upload in the folder.
the source code have to be in VB.
Thanks
|
|
|
|
|
monitor a folder in Win32 programme.
There are two windows API : FindFirstChangeNotification and ReadDirectoryChangesW.
it's my pleasure to make friend with you.
|
|
|
|
|
i doing in visual studio 2005. Can you write the whole code for me. Thanks alot
|
|
|
|
|
ok,tell me your email, i will send you soon.
it's my pleasure to make friend with you.
|
|
|
|
|
|
but i need the source code in VB
|
|
|
|
|
pearllyn wrote: but i need the source code in VB
Then you should be asking your question in the Visual Basic Forum[^]
1300 calories of pure beef goodness can't be wrong!
|
|
|
|
|
pearllyn wrote: the source code have to be in VB.
So why are you asking here?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I want to list all the installed programs like control panel Add/Remove programs. I know all the items would be list in the registry path:
'HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall'.
But, the problem is, there would be too many items if I enumerate the key, all system update packages and other small applets included,too. I only need basic information of the installed programs like control panel do, how to do that?
Thanks
|
|
|
|
|
Please check this article, it will be useful
<a href="http://www.codeproject.com/KB/system/installed_programs.aspx">How to get a list of installed applications</a>[<a href="http://www.codeproject.com/KB/system/installed_programs.aspx" target="_blank" title="New Window">^</a>]
This article to doing the same, only you can filter those which you dont want.
Величие не Бога может быть недооценена.
|
|
|
|
|
Thanks for your reply.
But it still list all the programs installed on the system, updates, addons included.
|
|
|
|
|
kcynic wrote: I want to list all the installed programs like control panel Add/Remove programs. I know all the items would be list in the registry path:
'HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall'.
What you want is just not possible. Windows does not know about all programs that you have installed (especially the older ones), only the ones that have gone the "standard" route and updated the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall key.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
maybe it's a complicated work.
Thanks for your reply.
|
|
|
|
|
The Official method (used by "Add/Remove program") is with COM interfaces)
See on Win32 ng[^]
where the code has often ben posted (C++)
|
|
|
|
|
Thanks, I'll have a try
Regards
|
|
|
|
|
Don't bother. A quick look through kilt's post history shows that his suggestions are all but completely useless.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
My Windows MFC Application will receive a structure from a Unix machine (Big Endian) over UDP.
The structure has the following data types:-
struct RXData {
double timeStamp;
double item1;
long item2;
double item3;
int flag1;
bool state;
};
What do I need to do on the Windows platform to get the data in the correct format; i.e. do I use procedures like theses below - I did try but still not getting the correct answer.
float swap(float d)
{
float a;
unsigned char *dst = (unsigned char *)&a;
insigned char *src = (unsigned char *)&d;
dst[0] = src[3];
dst[1] = src[2];
dst[2] = src[1];
dst[3] = src[0];
return a;
}
short convert_short(short in)
{
short out;
char *p_in = (char *) ∈
char *p_out = (char *) &out;
p_out[0] = p_in[1];
p_out[1] = p_in[0];
return out;
}
The floats give incorrect values.
Any suggestions for this simple scheme please.
Regards,
Andy.
|
|
|
|
|
Actually you need to convert double s, not float s (i.e. 8-byte values instead of 4-byte ones).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|