Пример #1
0
            protected override void WndProc(ref Message msg)
            {
                const int wmSize = 0x5;

                if (msg.Msg == wmSize)
                {
                    var args = new SubClassingWindowEventArgs(msg);
                    OnCallBackEvent(args);
                }

                base.WndProc(ref msg);
            }
Пример #2
0
 private void OnCallBackEvent(object sender, SubClassingWindowEventArgs e)
 {
     AdjustSize();
 }
Пример #3
0
 private void OnCallBackEvent(SubClassingWindowEventArgs e)
 {
     Debug.Assert(CallBackEvent != null, "CallBackEvent != null");
     CallBackEvent(this, e);
 }