So, I forgot to tell I'm doing this with VS2008 and WIndows XP, but I'm not sure it is the problem...
I have created a new project using the IntroJucer, a GUI application with a main.cpp and a basic window, with the last version of JUCE code. Because I'm on Windows XP, I disable the DirectWrite flag, I save and then I open the project with Visual Studio.
Here is the modified MainComponent.cpp
/*
This file was auto-generated!
==============================================================================
*/
#include “MainComponent.h”
//==============================================================================
MainContentComponent::MainContentComponent()
{
setLookAndFeel(&theLF);
// -------------------------------------------------------------------------
addAndMakeVisible(comboTest = new ComboBox());
//comboTest->setColour(ComboBox::textColourId, theLF.findColour(ComboBox::textColourId));
comboTest->addItem("no oversampling", 1);
comboTest->addItem("oversampling 2 times", 2);
comboTest->setSelectedId(1, dontSendNotification);
setSize (500, 400);
}
MainContentComponent::~MainContentComponent()
{ deleteAllChildren();
}
void MainContentComponent::paint (Graphics& g)
{
g.fillAll (Colour (0xffeeddff));
g.setFont (Font (16.0f));
g.setColour (Colours::black);
g.drawText ("Hello World!", getLocalBounds(), Justification::centred, true);
}
void MainContentComponent::resized()
{
// This is called when the MainContentComponent is resized.
// If you add any child components, this is where you should
// update their positions.
comboTest->setBounds(20,20,200,20);
}
Here is the modified MainComponent.h
/*
This file was auto-generated!
==============================================================================
*/
#ifndef MAINCOMPONENT_H_INCLUDED
#define MAINCOMPONENT_H_INCLUDED
#include “…/JuceLibraryCode/JuceHeader.h”
class CustomLookAndFeel : public LookAndFeel_V2
{
public:
CustomLookAndFeel()
{
const Colour infoColour (255, 128, 0);
const Colour backgroundColour (0, 0, 0);
const Colour textColour (255, 255, 255);
setColour(ComboBox::backgroundColourId, backgroundColour);
setColour(ComboBox::textColourId, textColour);
setColour(ComboBox::arrowColourId, infoColour);
setColour(ComboBox::buttonColourId, infoColour);
setColour(ComboBox::outlineColourId, infoColour);
}
~CustomLookAndFeel()
{
}
};
//==============================================================================
/*
This component lives inside our window, and this is where you should put all
your controls and content.
*/
class MainContentComponent : public Component
{
CustomLookAndFeel theLF;
ComboBox *comboTest;
public:
//==============================================================================
MainContentComponent();
~MainContentComponent();
void paint (Graphics&);
void resized();
private:
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContentComponent)
};
#endif // MAINCOMPONENT_H_INCLUDED
When I run the project, I got the following display depending on the line commented or not

As you can see, on the second part we can't see the text, which keeps the default black colour... I just did what I have written, and the bug appears...