|
When you call LoadImage to load the icon into an HICON, specify the size that you want, 16x16, then you will be able to have both versions stored in one icon.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
i have started designing an interface that looks like that of 3d studio max, and wondered if anyone thought it was worth the time and effort.
==================================================
When Your Mind Wonders...Where Does It Go???
|
|
|
|
|
Great Ideas Rules the World..!!!!
R_Renjith The True CP ian
|
|
|
|
|
hi
i used the default app icon for my system tray icon and it seems to have been squished down cos bits of it are missing ... am assuming one can provide a separate icon and all but how big should i make it?
16*16 or what?
sorry if this is a dumb question
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" sonork: 100.18128 8028finder.com
|
|
|
|
|
yes 16x16 in size, and cooincidentally you will need to make it a 16 color bitmap as well. Even if you give the tray a 256 color icon, it will squash it to 16 colors.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
kilowatt wrote:
Even if you give the tray a 256 color icon, it will squash it to 16 colors.
I thought that starting with win2k the systray can have 256 colors icons. Please correct me as I am not sure. Thanks.
Best regards,
Alexandru Savescu
|
|
|
|
|
Hi, I've wondered if there is some article describing the "Add Remove Programs" program API. I need to list installed programs, and be able to install and uninstall the way this program does.
All help appreciated,
Deian
|
|
|
|
|
Look in HKLM\software\Microsoft\Windows\CurrentVersion\Uninstall
Each key under that one is a product. Ones that have both "DisplayName" and "UninstallString" values are listed in Add/Remove.
--Mike--
Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
|
|
|
|
|
Thanks Mike, I've found them, but yet, I don't have any idea on how to programatically call Uninstall like I've done it when I press the Uninstall button. Any ideas on doing that?
Thanks,
Deian ![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
How do you format a number to have 2 digits, for example 1 would become 01 and 10 would stay 10. There wont be any 3 digit numbers so it doesn't have to round, just add a 0 to 1-digit numbers.
-Raffi
|
|
|
|
|
Use follows:
m_str.Format(_T("%.2d"), number);
or
m_str.Format(_T("%02d"), number);
Best regards,
Eugene Pustovoyt
|
|
|
|
|
I almost had it. I had %2d. Thanks alot
-Raffi
|
|
|
|
|
How does a person get a list of installed tape drives (and the information required for CreateFile()) in a Windows9x environment.![Confused | :confused:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_confused.gif)
|
|
|
|
|
DWORD GetTapeParameters(
HANDLE hDevice,
DWORD dwOperation,
LPDWORD lpdwSize,
LPVOID lpTapeInformation
);
try the functiion..
R_Renjith The True CP ian
|
|
|
|
|
installed tape drives ... Windows9x
Using Win32 API? You don't.
Mike Don't blame me, I'm just the messenger. Blame Microsoft
|
|
|
|
|
Hi.
Is it possible to change the background color and font color of a CEditView window? Please explain.
Thanks,
Kuphryn
|
|
|
|
|
Use SetTextColor and SetBkColor.
For an example see this article at CodeProject.
-Dominik
|
|
|
|
|
I have read that tutorial. I believe it is for an edit box.
Kuphryn
|
|
|
|
|
But should also work for a CEditView. A CEditView is nothing other than a bigger CEditBox.
-Dominik
|
|
|
|
|
Hello there,
There isn’t any control or ActiveX or etc.
I just drew a jpeg file by IPicture(class interface) in background !
Then, I loaded a .bmp file from resource as usual …
CBitmap bmp;
bmp.LoadBitmap(IDB_BITMAP1);
In one of functions in my program I have to move the bitmap on the dialog !!!
Problem is when I moving the bitmap, I don’t know how could refresh that
I used Invalidate() function too, but it doesn’t work
I sent screenshot, too
Help me, please
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
try
RedrawWindow()
R_Renjith The True CP ian
|
|
|
|
|
Hi there,
How can I select a RECT from a image that is in my dialog in CDC object ????
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I'm still fairly new to VC++ and MFC so I'm not sure of the correct terminology to use here.
I'm developing a Windows-based application. I would like this application to be able to detect if another instance of this application is already running and, if so, send and receive information with it. How would I do that?
|
|
|
|
|
|
Thank you! I think I can adapt this code to my needs without much trouble.
|
|
|
|