1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Introjucer: Added code to the win32 resource file to allow custom rc files to be included.

This commit is contained in:
jules 2012-06-01 16:26:10 +01:00
parent 51e99b31f9
commit 4cabc9095e
14 changed files with 86 additions and 2 deletions

View file

@ -1,3 +1,7 @@
#ifdef JUCE_USER_DEFINED_RC_FILE
#include JUCE_USER_DEFINED_RC_FILE
#else
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -23,4 +27,6 @@ BEGIN
END
END
#endif
IDI_ICON1 ICON DISCARDABLE "icon.ico"

View file

@ -1,3 +1,7 @@
#ifdef JUCE_USER_DEFINED_RC_FILE
#include JUCE_USER_DEFINED_RC_FILE
#else
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -23,4 +27,6 @@ BEGIN
END
END
#endif
IDI_ICON1 ICON DISCARDABLE "icon.ico"

View file

@ -1,3 +1,7 @@
#ifdef JUCE_USER_DEFINED_RC_FILE
#include JUCE_USER_DEFINED_RC_FILE
#else
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -23,4 +27,6 @@ BEGIN
END
END
#endif
IDI_ICON1 ICON DISCARDABLE "icon.ico"

View file

@ -434,7 +434,11 @@ protected:
MemoryOutputStream mo;
mo << "#undef WIN32_LEAN_AND_MEAN" << newLine
mo << "#ifdef JUCE_USER_DEFINED_RC_FILE" << newLine
<< " #include JUCE_USER_DEFINED_RC_FILE" << newLine
<< "#else" << newLine
<< newLine
<< "#undef WIN32_LEAN_AND_MEAN" << newLine
<< "#define WIN32_LEAN_AND_MEAN" << newLine
<< "#include <windows.h>" << newLine
<< newLine
@ -459,7 +463,9 @@ protected:
<< " BEGIN" << newLine
<< " VALUE \"Translation\", 0x409, 65001" << newLine
<< " END" << newLine
<< "END" << newLine;
<< "END" << newLine
<< newLine
<< "#endif" << newLine;
if (iconFile != File::nonexistent)
mo << newLine

View file

@ -1,3 +1,7 @@
#ifdef JUCE_USER_DEFINED_RC_FILE
#include JUCE_USER_DEFINED_RC_FILE
#else
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -23,4 +27,6 @@ BEGIN
END
END
#endif
IDI_ICON1 ICON DISCARDABLE "icon.ico"

View file

@ -1,3 +1,7 @@
#ifdef JUCE_USER_DEFINED_RC_FILE
#include JUCE_USER_DEFINED_RC_FILE
#else
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -23,4 +27,6 @@ BEGIN
END
END
#endif
IDI_ICON1 ICON DISCARDABLE "icon.ico"

View file

@ -1,3 +1,7 @@
#ifdef JUCE_USER_DEFINED_RC_FILE
#include JUCE_USER_DEFINED_RC_FILE
#else
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -23,4 +27,6 @@ BEGIN
END
END
#endif
IDI_ICON1 ICON DISCARDABLE "icon.ico"

View file

@ -1,3 +1,7 @@
#ifdef JUCE_USER_DEFINED_RC_FILE
#include JUCE_USER_DEFINED_RC_FILE
#else
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -22,3 +26,5 @@ BEGIN
VALUE "Translation", 0x409, 65001
END
END
#endif

View file

@ -1,3 +1,7 @@
#ifdef JUCE_USER_DEFINED_RC_FILE
#include JUCE_USER_DEFINED_RC_FILE
#else
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -22,3 +26,5 @@ BEGIN
VALUE "Translation", 0x409, 65001
END
END
#endif

View file

@ -1,3 +1,7 @@
#ifdef JUCE_USER_DEFINED_RC_FILE
#include JUCE_USER_DEFINED_RC_FILE
#else
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -21,3 +25,5 @@ BEGIN
VALUE "Translation", 0x409, 65001
END
END
#endif

View file

@ -1,3 +1,7 @@
#ifdef JUCE_USER_DEFINED_RC_FILE
#include JUCE_USER_DEFINED_RC_FILE
#else
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -22,3 +26,5 @@ BEGIN
VALUE "Translation", 0x409, 65001
END
END
#endif

View file

@ -1,3 +1,7 @@
#ifdef JUCE_USER_DEFINED_RC_FILE
#include JUCE_USER_DEFINED_RC_FILE
#else
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -22,3 +26,5 @@ BEGIN
VALUE "Translation", 0x409, 65001
END
END
#endif

View file

@ -1,3 +1,7 @@
#ifdef JUCE_USER_DEFINED_RC_FILE
#include JUCE_USER_DEFINED_RC_FILE
#else
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -22,4 +26,6 @@ BEGIN
END
END
#endif
IDI_ICON1 ICON DISCARDABLE "icon.ico"

View file

@ -1,3 +1,7 @@
#ifdef JUCE_USER_DEFINED_RC_FILE
#include JUCE_USER_DEFINED_RC_FILE
#else
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@ -22,4 +26,6 @@ BEGIN
END
END
#endif
IDI_ICON1 ICON DISCARDABLE "icon.ico"