Windows 11: use rounded popups with system border and system drop shadow

This commit is contained in:
Karl Tauber
2022-11-23 16:32:09 +01:00
parent 35e23574cf
commit 07ad467c73
9 changed files with 338 additions and 10 deletions

View File

@@ -29,6 +29,8 @@
* @author Karl Tauber
*/
HWND getWindowHandle( JNIEnv* env, jobject window );
//---- JNI methods ------------------------------------------------------------
extern "C"
@@ -540,7 +542,7 @@ void FlatWndProc::setMenuItemState( HMENU systemMenu, int item, bool enabled ) {
::SetMenuItemInfo( systemMenu, item, FALSE, &mii );
}
HWND FlatWndProc::getWindowHandle( JNIEnv* env, jobject window ) {
HWND getWindowHandle( JNIEnv* env, jobject window ) {
JAWT awt;
awt.version = JAWT_VERSION_1_4;
if( !JAWT_GetAWT( env, &awt ) )