Interesting results after testing this code on S60 3rd ed FP1 & FP2 devices:
Code:
void MyView::ConstructL()
{
CreateWindowL(); //
.........
}
void MyView::Draw(const TRect& aRect) const
{
// Get the standard graphics context
CWindowGc& gc = SystemGc();
TRgb b(255, 0, 0);
b.SetAlpha(100);
Window().SetTransparencyFactor(b);
// Gets the control's extent
TRect drawRect(Rect());
gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
gc.SetBrushColor(b);
// Clears the screen
gc.Clear(Rect());
}
The same test app running on
- S60 3rd ed FP1 device

- S60 3rd ed FP2 device

Looks like RWindow::SetTransparencyFactor() works.