protected override void OnNcCalcSize(ref NcCalcSizePacket packet) { if (this.DwmHelper.TryHandleNcCalcSize(ref packet)) { return; } base.OnNcCalcSize(ref packet); }
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;