In Windows, Alt-F4 doesn’t close the window in native mode, but does work in non-native mode.
Same results with command-W on Mac OS X.
In Windows, you can sometimes hit alt-spacebar to get the system menu for the window and sometimes not. I haven’t figured out the pattern, but it’s not consistent.
Sorry to gripe so much - I’m really pleased to see native window support added.
While I’m complaining, there’s one other minor issue. On WinXP, when you mouse over the title bar buttons of non-JUCE apps, you see a subtle highlight on the button you’re rolling over. With the latest JUCE stuff, you don’t get the roll-over highlight.
For Windows, I added this to peerWindowProc and alt-F4 closes the window with the native title bar active:
case WM_SYSCOMMAND :
if ((styleFlags & windowHasTitleBar) != 0)
{
if (SC_CLOSE == wParam)
handleUserClosingWindow();
return DefWindowProc (h, message, wParam, lParam);
}
return 0;
Alt-spacebar still doesn’t work quite right; if you click on the native title bar and then hit alt-spacebar, you get the system menu every time. If you click elsewhere in the window and hit alt-spacebar, you don’t get the system menu.