diff --git a/distrib/msw/vc.rsp b/distrib/msw/vc.rsp index fd4b8ce900..67bffaec61 100644 --- a/distrib/msw/vc.rsp +++ b/distrib/msw/vc.rsp @@ -3,20 +3,20 @@ src/wxvc.dsw src/wxvc_dll.dsp src/wxvc_dll.dsw -src/jpeg/jpeg.dsp -src/jpeg/jpeg.dsw +src/jpeg/JpegVC.dsp +src/jpeg/JpegVC.dsw -src/tiff/tiff.dsp -src/tiff/tiff.dsw +src/tiff/TiffVC.dsp +src/tiff/TiffVC.dsw -src/zlib/zlib.dsp -src/zlib/zlib.dsw +src/zlib/ZlibVC.dsp +src/zlib/ZlibVC.dsw -src/png/png.dsp -src/png/png.dsw +src/png/PngVC.dsp +src/png/PngVC.dsw -src/xpm/xpm.dsp -src/xpm/xpm.dsw +src/xpm/XpmVC.dsp +src/xpm/XpmVC.dsw samples/SamplesVC.dsw diff --git a/docs/tech/index.txt b/docs/tech/index.txt index e13ccc311a..42dbd55d20 100644 --- a/docs/tech/index.txt +++ b/docs/tech/index.txt @@ -6,5 +6,6 @@ TN0005 Adding a wxWindows contribution TN0006 Making and installing RPMs for wxWindows TN0007 Using and modifying the BC++ IDE files TN0008 How to learn wxWindows programming +TN0009 Creating and converting icons Version: $Id$ diff --git a/docs/tech/tn0009.htm b/docs/tech/tn0009.htm new file mode 100644 index 0000000000..d0461c4ec9 --- /dev/null +++ b/docs/tech/tn0009.htm @@ -0,0 +1,60 @@ + + + +Creating and converting icons + + + + + + + + + + + + +
+ +Creating and converting icons + +
+ +

+ +Icons are bitmaps that may contain transparency information. Under X, icons are +usually created from XPM files, which may be loaded from a file or created from +data embedded in a C++ source file.

+ +Under Windows, icon files (extension .ico) may contain multiple icons for different sizes and colour +depths, and can be loaded from a file or loaded from the Windows resources compiled +into the executable.

+ +You can decide to use only XPMs on Windows and Unix, or you could use XPMs on Unix and +Windows icons under Windows -- the latter will require some #idefs in your code or use of the wxICON macro.

+ +If you are using a compiler such as Borland C++, Visual C++ or Watcom C++, you +can use the provided icon editor. However, if using Cygwin or Mingw32, there +is no icon editor so you must obtain one separately, such as IconEdit32.

+ +To convert from XPM to BMP (which can be loaded or pasted into an icon editor to save as an ICO file), +you can use Vadim Zeitlin's xpm2bmp.exe utility. +To convert from BMP to XPM, you can use xpmshow.exe +(sometimes renamed bmp2xpm.exe) which is actually am old wxWindows 1.68 utility. You will have to edit the resulting +file since the full path is used as the variable name, plus you may wish to specify a transparent colour e.g.:

+ +

+"  s None  c None",
+
+ +This will indicate that the space character will be taken as the transparent colour throughout the image.

+ + + + + + + diff --git a/samples/mfc/mfctest.cpp b/samples/mfc/mfctest.cpp index ab1e42de2e..d50d963470 100644 --- a/samples/mfc/mfctest.cpp +++ b/samples/mfc/mfctest.cpp @@ -46,6 +46,9 @@ // version. Perhaps someone else is a wizard at working out the required settings // in the wxWin library and the sample; then debugging the assert problem may be // easier. +// +// (4) Compiling wxWindows in DLL mode currently includes windows.h, so you must only +// try linking wxWindows statically. // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -56,8 +59,8 @@ #include "wx/wx.h" -#ifdef _WINDOWS_ -#error Sorry, you need to edit include/wx/wxprec.h, comment out the windows.h inclusion, and recompile. +#if defined(_WINDOWS_) || !wxUSE_MFC +#error Sorry, you need to edit include/wx/msw/setup.h, set wxUSE_MFC to 1, and recompile. #endif #ifdef new diff --git a/src/common/config.cpp b/src/common/config.cpp index 44171b597e..feccd99ab0 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -42,6 +42,7 @@ #include #include +#include // ---------------------------------------------------------------------------- // global and class static variables