# addToDesktop()

**URL:** <https://forum.juce.com/t/addtodesktop/44533>\
**Category:** General JUCE discussion\
**Created:** [February 19, 2021, 4:35pm UTC](https://forum.juce.com/t/addtodesktop/44533 "2021-02-19T16:35:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![soje](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@soje](https://forum.juce.com/u/soje)\
**Post date:** [February 19, 2021, 4:35pm UTC](https://forum.juce.com/t/addtodesktop/44533/1 "2021-02-19T16:35:25Z")

</div>

I’m working on a plugin for a Runtime Environment similar to java. The RE can have a background/desktop, or “floating” windows (background hidden). I want to avoid a Titlebar on the GUI for my plugin.

There’s no problem if the desktop is visible, but when it’s hidden, the GUI of my plugin isn’t shown - only the dropshadow. If I make the titlebar shown, the whole GUI is visible. Any ideas how to fix this?

This is code to open the GUI:

```auto
void ScopeFXGUI::open(HWND scopeWindow)
{
    setOpaque(true);
    setVisible(true);
    centreWithSize(100, 100);
    addToDesktop(ComponentPeer::windowHasDropShadow, scopeWindow); // <-- Only dropshadow shown
    //addToDesktop(ComponentPeer::windowHasDropShadow | ComponentPeer::windowHasTitleBar, scopeWindow); // <-- Whole GUI (incl ugly Tiltebar) shown
    mainContent = std::make_unique<MainContent>(scopeFX);
    addAndMakeVisible(*mainContent);
}

```
