예제 #1
0
 protected override void OnNcCalcSize(ref NcCalcSizePacket packet)
 {
     if (this.DwmHelper.TryHandleNcCalcSize(ref packet))
     {
         return;
     }
     base.OnNcCalcSize(ref packet);
 }
예제 #2
0
 public virtual bool TryHandleNcCalcSize(ref NcCalcSizePacket packet)
 {
     if (!this.m_isFirstNcCalcDone)
     {
         // Use default processing the very first time to ensure compatibility - cascade
         // and stack windows don't work otherwise.
         this.m_isFirstNcCalcDone = true;
         return(false);
     }
     ref var ncCalcSizeParams = ref packet.Params;