# JUCE component inside another non-JUCE application window

**URL:** <https://forum.juce.com/t/juce-component-inside-another-non-juce-application-window/5260>\
**Category:** MacOSX and iOS\
**Created:** [May 11, 2010, 4:14am UTC](https://forum.juce.com/t/juce-component-inside-another-non-juce-application-window/5260 "2010-05-11T04:14:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dheeraj](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@Dheeraj](https://forum.juce.com/u/Dheeraj)\
**Post date:** [May 11, 2010, 4:14am UTC](https://forum.juce.com/t/juce-component-inside-another-non-juce-application-window/5260/1 "2010-05-11T04:14:01Z")

</div>

Hi Jules,

JUCE\_Version : 1.45 (Since I have a Carbon view).

I’m placing juce component inside another application window (Not juce window) using the following code :

initialiseJuce\_GUI();  
\_pJuceComponent-\>addToDesktop (0, winHandle);

Now if I don’t perform any mouse operations on the component inside the window, I’m able to close the main application window. But if I click on the juce component and then if I try to close the main application window, it’s not closing. In fact, the application window does not take any mouse events.

What could be the issue?

Thanks & Regards,  
Dheeraj.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 11, 2010, 9:24am UTC](https://forum.juce.com/t/juce-component-inside-another-non-juce-application-window/5260/2 "2010-05-11T09:24:28Z")

</div>

Sorry, but 1.45 is ancient history! I can only help with problems in the current codebase, and certainly can’t remember every subtle windowing issue that might have been there years ago!

---

<div class="post-metadata">

**Author:** ![vishvesh](https://avatars.discourse-cdn.com/v4/letter/v/85e7bf/32.png) [@vishvesh](https://forum.juce.com/u/vishvesh)\
**Post date:** [May 11, 2010, 2:58pm UTC](https://forum.juce.com/t/juce-component-inside-another-non-juce-application-window/5260/3 "2010-05-11T14:58:36Z")

</div>

Hi Dheeraj,  
It’s going to be very hard, if you stick with juce 1.45, since it’s based mostly on Carbon. You could face deprecation issues on Snow Leopard. You had better move on the latest version of jucce.
