C++ Image

C++ Image

sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
So how do I properly set the img of a C++ winforms app?

It only shows the icon on the executable and the form, not in the taskbar!?
C++ code
wincl.hIconSm = (HICON)LoadImage(GetModuleHandle(NULL),
MAKEINTRESOURCE(IDI_MYICON), IMAGE_ICON, 16, 16, 0);
 
 
 
2010 Oct 25 at 16:30 PDT
SuperJer
Websiteman

2005 Mar 20 • 6629
I looked around and there's not much information about using C++ and Winforms together, at all. It's kind of an odd combo, you know.

What version of Visual Studio are you using? VS2010 has improved support for this kind of stuff.

The most proper way to do it would not be in code but as a property of your application/forms somewhere. Unfortunately I do not know where this is.
 
 
 
2010 Oct 25 at 17:04 PDT
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
You confused me. But, it doesn't matter because I fixed it. Anyways, I use devC++ compiler. What is the recommended way to make window's forms?
 
 
 
2010 Oct 25 at 19:27 PDT
SuperJer
Websiteman

2005 Mar 20 • 6629
Most people using Winforms use C# or VB.NET with Visual Studio. If you use other languages/tools there's not as much helpful information.

I'm not saying you should switch, just what to expect.
 
 
 
2010 Oct 26 at 17:37 PDT
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
How hard is it to make your own forms?
 
 
 
2010 Oct 27 at 21:42 PDT
phoenix_r

2009 May 13 • 905
17 ₧
sprinkles said:
How hard is it to make your own forms?

Hard enough that M$ developed a very expensive IDE to do all the work for you?
BOO
 
 
 
2010 Oct 28 at 09:08 PDT
sprinkles

Chrome Whore
2009 Sep 6 • 2547
10 ₧
phoenix_r said:
sprinkles said:
How hard is it to make your own forms?

Hard enough that M$ developed a very expensive IDE to do all the work for you?

I thought you had to use the .Net framework then?
 
 
 
2010 Oct 28 at 10:55 PDT
Page [1]