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); }
private void OnCallBackEvent(object sender, SubClassingWindowEventArgs e) { AdjustSize(); }
private void OnCallBackEvent(SubClassingWindowEventArgs e) { Debug.Assert(CallBackEvent != null, "CallBackEvent != null"); CallBackEvent(this, e); }