|
-
Jan 28th, 2000, 03:35 PM
#1
Thread Starter
New Member
Hi,
Anybody know how to send a reference to a icon (located in a resource file) to the registry?
This a file association question. I've set up a default icon key in the registry, and I can send an ico file(located in the app folder) to it, but can't figure out how to refer to an icon in a resource file.
I have two icons, 101 and 102. 101 is the exe icon and 102 is for document files created by the exe.
Inside the program I use LoadResPicture to load the icon to my forms, but how can I refer to 102 in my registry code?
Here's the code I'm using now.
lResult = SetRegValueAS(HKEY_CLASSES_ROOT,_
"BookMaker.Document\DefaultIcon", "", _
App.Path & "\BookMakerDoc.ico")
So how can change the ico path for the 102 resource icon. Does it have a path?
Thanks!
WillP
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|