INFO: Icons for Console Applications

ID: Q91150


The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API), used with:
    • Microsoft Windows NT versions 3.1, 3.5, 3.51, 4.0
    • Microsoft Windows 95
    • Microsoft Windows 2000


SUMMARY

Under OS/2, when you add a console application named, for example CONAPP.EXE, to a program group, the system uses the file CONAPP.ICO (if it exists ) as the icon. This does not happen automatically under Windows NT and Windows 98 or Windows 2000; the item will have a generic icon.

NOTE: This does not apply to Windows 95.

To specify the icon that appears in the program group, use the following steps as an example:

  1. Create a resource file containing an ICON statement:
    
       ConApp ICON ConApp.ICO 


  2. Compile the resource using RC:
    
       rc -r $(rcvars) -fo conapp.res conapp.rc 


  3. Add the .rc file to the link command line



MORE INFORMATION

If the application is started by clicking its icon in Program Manager, the icon that appears when the application is minimized will be that icon, whether it is a generic icon or an icon imbedded in the executable file.

If the application is started from the MS-DOS prompt or the File menu, then the icon that appears when the application is minimized will be the icon that is used for the MS-DOS prompt.

Additional query words: 3.10 3.50

Keywords : kbConsole kbKernBase kbNTOS310 kbNTOS350 kbNTOS351 kbNTOS400 kbWinOS2000 kbWinOS95 kbGrpKernBase
Version : winnt:3.1,3.5,3.51,4.0
Platform : winnt
Issue type : kbinfo


Last Reviewed: January 11, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.