Kodewerx
https://www.kodewerx.org/forum/

MFC app wizard custom icon
https://www.kodewerx.org/forum/viewtopic.php?f=17&t=6869
Page 1 of 1

Author:  James0x57 [ Mon Jul 06, 2009 6:22 pm ]
Post subject:  MFC app wizard custom icon

I'm trying to make a program with a simple dialog interface and I can't manage to make it use my icon (.ico) for the build. It keeps replacing it with its own stupid MFC logo.

Any help would be greatly appreciated; this is really frustrating.

Author:  jleemero [ Mon Jul 06, 2009 7:11 pm ]
Post subject:  Re: MFC app wizard custom icon

Eh, not sure how much help I'll be, but:

Quote:
The Icon in IDR_MAINFRAME is the one that MFC uses for the program Icon. But, if
you change the icon, you also need to change the 16x16 version of it. To do this, bring up
the icon in the resource editor, and click in the 'Device' combo-box. You will then have
the ability to change the resolution to 16x16, and edit the icon that MFC uses for small
icons for your program.

Author:  James0x57 [ Mon Jul 06, 2009 7:45 pm ]
Post subject:  Re: MFC app wizard custom icon

Yes, thank you. That was exactly the problem. Stupid hidden subicon.

Author:  jleemero [ Tue Jul 07, 2009 12:12 am ]
Post subject:  Re: MFC app wizard custom icon

You're welcome.

I still have no clue what the fuck MFC App Wizard is.

Author:  KhaosKnight1 [ Tue Jul 07, 2009 1:10 am ]
Post subject:  Re: MFC app wizard custom icon

Microsoft wrote:
The MFC Application Wizard generates an application having built-in functionality that, when compiled, implements the basic features of a Windows executable (.exe) application.


jleemero wrote:
I still have no clue what the fuck MFC App Wizard is.


^That is awesome, if only i had that before now....

Author:  James0x57 [ Tue Jul 07, 2009 1:44 am ]
Post subject:  Re: MFC app wizard custom icon

As if I'd ask for help here before exhausting all other options.

And I figured it out "on my own" before I saw your post by installing an icon editor in PhotoShop that told me the subicons were there. (BTW, there were 9 all in different sizes, not just one extra 16x16.)

Author:  Parasyte [ Tue Jul 07, 2009 4:11 pm ]
Post subject:  Re: MFC app wizard custom icon

MFC? oh ... well...

I suggest trying XULRunner as an alternative.

Author:  James0x57 [ Wed Jul 08, 2009 3:47 am ]
Post subject:  Re: MFC app wizard custom icon

I closed the MFC wip due to it sucking ass. As you know, closing an unreleased wip is usually app-fatal.

However, provided an XULRunner dropdown list example (which I have not been able to find yet..), I will go through all the hoops to try and even get started with XULRunner using Visual Studio 2005. At least a finished project with XULRunner can work on multiple OSs.

Apps using it are always open source, yes? (it doesn't appear that you can compile it and only release an exe..)

Author:  Parasyte [ Wed Jul 08, 2009 4:19 pm ]
Post subject:  Re: MFC app wizard custom icon

You don't do XULRunner with Visual Studio. You do XULRunner with XULRunner... Or Firefox...

Doing a dropdown list is apparently pretty simple, though: https://developer.mozilla.org/en/XUL/menulist
Code:
  <menulist>
    <menupopup>
      <menuitem label="option 1" value="1"/>
      <menuitem label="option 2" value="2"/>
      <menuitem label="option 3" value="3"/>
      <menuitem label="option 4" value="4"/>
    </menupopup>
  </menulist>

Image

Like, ZOMG WOAH?

MDC (Mozilla Developer Central; linked above) has a lot of info to help get you started with XULRunner. And I can also get you setup, if you'd like. Syndrome is written entirely on XULRunner. You could even use that as a starting point for your app.

Re: Always open source? Not exactly. It's ideal, since XUL is an XML dialect, and functionality is provided mostly with JavaScript. However, you can also write XPCOM components in C++, which is compiled (obviously); and then be a total asshat and release your XPCOM-infused XULRunner app without the sources for the XPCOM component, I guess. That sounds like a bad idea to me, but to each their own...

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/