Windows Auto-sizing, auto selecting icon files

From: Ryan Pavlik <abiryan_at_ryand.net>
Date: Wed May 19 2004 - 01:33:11 CEST

Hello, list! Attached to this email are two files: one that I'm sure
about, one I'm not so sure about. The ICO is intended to replace the
/wp/ap/win/abiword_doc_[16|32].ico files with one ICO with all 3 sizes
(16, 32, and 48) and both color depths, so that Windows will
automatically select the closest match for the current settings. That's
the file I'm sure about. The RC2 is my attempt at editing the current
file to replace the dual doc icons with the single integrated one.
Could Jeremy or someone have a peek at this? I thought I had it right,
but my (admittedly, messed up) build turned that icon in the application
icon, which is not quite what I wanted :).

Thank you!

Ryan

// AbiWord
// Copyright (C) 1998 AbiSource, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////
// THIS FILE IS INCLUDED BY .cpp AND .rc FILES.
//
// *** RC.exe IS BRAIN-DAMAGED. GIVING THIS FILE AN .rc2
// *** EXTENSION MAKES #INCLUDING THIS FILE FROM Win32Main.rc
// *** WORK -- IF THE SUFFIX IS .h ONLY THE #DEFINES WORK, THE
// *** DIALOGS DO NOT GET COMPILED.
//
//////////////////////////////////////////////////////////////////

#define AP_RID_ICON_APPLICATION_32 10000
#define AP_RID_ICON_APPLICATION_16 10001
#define AP_RID_ICON_DOCUMENT 10002

#ifdef RC_INVOKED

// Menu bitmaps

AP_RID_BITMAP_CUT BITMAP DISCARDABLE "..\\..\\..\\af\\ev\\win\\bmp\\menu_cut.bmp"
AP_RID_BITMAP_COPY BITMAP DISCARDABLE "..\\..\\..\\af\\ev\\win\\bmp\\menu_copy.bmp"
AP_RID_BITMAP_PASTE BITMAP DISCARDABLE "..\\..\\..\\af\\ev\\win\\bmp\\menu_paste.bmp"
AP_RID_BITMAP_NEW BITMAP DISCARDABLE "..\\..\\..\\af\\ev\\win\\bmp\\menu_new.bmp"
AP_RID_BITMAP_OPEN BITMAP DISCARDABLE "..\\..\\..\\af\\ev\\win\\bmp\\menu_open.bmp"
AP_RID_BITMAP_PRINT BITMAP DISCARDABLE "..\\..\\..\\af\\ev\\win\\bmp\\menu_print.bmp"
AP_RID_BITMAP_FIND BITMAP DISCARDABLE "..\\..\\..\\af\\ev\\win\\bmp\\menu_search.bmp"
AP_RID_BITMAP_SYMBOL BITMAP DISCARDABLE "..\\..\\..\\af\\ev\\win\\bmp\\menu_insert_symbol.bmp"
AP_RID_BITMAP_PICTURE BITMAP DISCARDABLE "..\\..\\..\\af\\ev\\win\\bmp\\menu_insert_image.bmp"
AP_RID_BITMAP_SPELL BITMAP DISCARDABLE "..\\..\\..\\af\\ev\\win\\bmp\\menu_spellcheck.bmp"
AP_RID_BITMAP_OPTIONS BITMAP DISCARDABLE "..\\..\\..\\af\\ev\\win\\bmp\\menu_preferences.bmp"
AP_RID_BITMAP_HELP BITMAP DISCARDABLE "..\\..\\..\\af\\ev\\win\\bmp\\menu_help.bmp"
AP_RID_BITMAP_REDO BITMAP DISCARDABLE "..\\..\\..\\af\\ev\\win\\bmp\\menu_redo.bmp"
AP_RID_BITMAP_UNDO BITMAP DISCARDABLE "..\\..\\..\\af\\ev\\win\\bmp\\menu_undo.bmp"

                        
#ifdef ABISOURCE_LICENSED_TRADEMARKS

AP_RID_ICON_APPLICATION_32 ICON DISCARDABLE "abiword_app_32_tm.ico"
AP_RID_ICON_APPLICATION_16 ICON DISCARDABLE "abiword_app_16_tm.ico"
AP_RID_ICON_DOCUMENT ICON DISCARDABLE "abiword_doc_tm.ico"

#else

AP_RID_ICON_APPLICATION_32 ICON DISCARDABLE "abiword_app_32.ico"
AP_RID_ICON_APPLICATION_16 ICON DISCARDABLE "abiword_app_16.ico"
AP_RID_ICON_DOCUMENT ICON DISCARDABLE "abiword_doc.ico"

#endif

#endif /* RC_INVOKED */

Received on Wed May 19 01:33:17 2004

This archive was generated by hypermail 2.1.8 : Wed May 19 2004 - 01:33:17 CEST