News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Where are these images stored?

Started by Gunner, March 06, 2010, 03:44:37 AM

Previous topic - Next topic

Gunner

What system file are these images in?  Instead of saving the "on" and "off" in my rc, I would like to load them at run time from whatever file they are in on the machine if possible

~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com

donkey

Hi Gunner,

You're not really likely to find those images anywhere in a Microsoft system library, they are generated by Windows as needed using the DrawFrameControl function
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

BogdanOntanu

And even IF they were stored in some system DLL or file it is a very bad ideea to read them directly from there. With the next OS update they can move into another file or dissappear completly and in this cases your application would stop working.

When using OS resources it is wise to respect the OS standards and recommendations. Using tricks or workarrounds will always backfire on you. I have seen a lot of applications that worked perfectly on a specific version of Windows and abbruptly stoped working for no reason on the next version of Windows.

Put your enegy into the code you write that is not OS specific.
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

Gunner

Thanks Edgar, I will look into that.  Bogdan, it was just a passing thought, figure there was an "easy" way to get my images for the treeview to be the same cross OS, I will just put em into the rc for now.  Thanks for the info
~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com

dedndave

not like they are complex images - you could make your own
but, the user may have selected an alternate theme - your image won't match   :P

Gunner

Quote from: dedndave on March 06, 2010, 03:49:24 PM
not like they are complex images - you could make your own
but, the user may have selected an alternate theme - your image won't match   :P

That is the whole idea, I want the images to match...
~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com

dedndave

then Edgar has the right advice
if you use the function, it will change as required by the OS and user settings

hutch--

Rob,

Its usually the case when you use a Windows control that each OS version controls what that control looks like. The two bitmaps look like a normal check box and if you set the normal check box it appearance will change with each OS version.

I test on 3 interfaces, a Vista black, default XP SP3 and a Win2000 interface and the same app looks different on each. What is important is that you use an XML manifest file to specify the later common control appearance otherwise you get the old style Win2000 interface.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php