@@ -451,17 +451,17 @@ private unsafe void SetTopmostState(bool isTop)
451451 var height = rect . GetHeight ( ) ;
452452 if ( isTop )
453453 {
454- PInvoke . SetWindowPos ( handle , PInvoke . HWND_TOPMOST , left , top , width , height , SWP_TOPMOST ) ;
454+ PInvoke . SetWindowPos ( handle , HWND . HWND_TOPMOST , left , top , width , height , SWP_TOPMOST ) ;
455455 }
456456 else
457457 {
458458 // Z-Order would only get refreshed/reflected if clicking the
459459 // the titlebar (as opposed to other parts of the external
460460 // window) unless I first set the popup to HWND_BOTTOM
461461 // then HWND_TOP before HWND_NOTOPMOST
462- PInvoke . SetWindowPos ( handle , PInvoke . HWND_BOTTOM , left , top , width , height , SWP_TOPMOST ) ;
463- PInvoke . SetWindowPos ( handle , PInvoke . HWND_TOP , left , top , width , height , SWP_TOPMOST ) ;
464- PInvoke . SetWindowPos ( handle , PInvoke . HWND_NOTOPMOST , left , top , width , height , SWP_TOPMOST ) ;
462+ PInvoke . SetWindowPos ( handle , HWND . HWND_BOTTOM , left , top , width , height , SWP_TOPMOST ) ;
463+ PInvoke . SetWindowPos ( handle , HWND . HWND_TOP , left , top , width , height , SWP_TOPMOST ) ;
464+ PInvoke . SetWindowPos ( handle , HWND . HWND_NOTOPMOST , left , top , width , height , SWP_TOPMOST ) ;
465465 }
466466
467467 this . appliedTopMost = isTop ;
0 commit comments