|
-
May 19th, 2002, 09:05 PM
#1
Thread Starter
Lively Member
Can't get the Visual C++ resource icon to load into title bar!
I am trying to use VC++ to load the icon onto the title bar, but it keeps loading that icon which is the ! inside a triangle! I created a resource file, loaded the icon in, named it IDI_ICON, saved it all, went to my main code, included "resource.h", went to the LoadIcon part of the hIcon and hIconSm sections of my WNDCLASSEX, and put in MAKEINTRESOURCE(IDI_ICON). But the dang thing wouldn't load, it loaded it with that ! inside a triangle. Can somebody please explain to me how to do this in VB? Help would be greatly appreciated.
- Justin Patrick Butler
Comme je trouve. "As I find."
- Butler family quote
Beneficia sumptos procul superant. "The benefits far exceed the costs."
- Myself
-
May 24th, 2002, 09:17 AM
#2
You must pass your instance handle to LoadIcon, not NULL. (I think that's the error, but some code would be nice)
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
May 24th, 2002, 10:07 AM
#3
Thread Starter
Lively Member
CornedBee, I had already figured this out. But thanks for taking your time to do this!
- Justin Patrick Butler
Comme je trouve. "As I find."
- Butler family quote
Beneficia sumptos procul superant. "The benefits far exceed the costs."
- Myself
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
|