Microsoft KB Archive/91150

{|
 * width="100%"|

INFO: Icons for Console Applications

 * }

Q91150

-

The information in this article applies to:


 * Microsoft Win32 Application Programming Interface (API), used with:
 * Microsoft Windows NT Server versions 3.1, 3.5, 3.51, 4.0
 * Microsoft Windows NT Workstation versions 3.1, 3.5, 3.51, 4.0
 * Microsoft Windows 95
 * the operating system: 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:

  Create a resource file containing an ICON statement:   ConApp ICON ConApp.ICO   Compile the resource using RC:   rc -r $(rcvars) -fo conapp.res conapp.rc  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 kbOSWinNT310 kbOSWinNT350 kbOSWinNT351 kbOSWinNT400 kbOSWin2000 kbOSWin95 kbGrpDSKernBase

Issue type : kbinfo

Technology : kbAudDeveloper kbWin32sSearch kbWin32API