Where to call base.WndProc() or base.DefWndProc()?
I have some questions regarding overriding the WndProc method of a Windows Form / NativeWindow. What exactly is the difference between WndProc and DefWndProc (edit: I thought it is called "DefaultWndProc" before)? I can only override WndProc, but what is DefWndProc for, which I can call anytime? And where to call base.WndProc in my overridden method? Or should I call DefWndProc instead? The following positions came into my mind: protected override void WndProc(ref Message m) { // 1st: I call the base handler at the start, in front of my handling. // Are there disadvantages here? base.WndProc