PreProcessMessage
-
Hi All i am trying to override the PreProcessMessage for the form and i am using this code public override bool PreProcessMessage(ref Message msg) { switch (msg.Msg) { case WM_RBUTTONDOWN: return true; default: return base.PreProcessMessage(ref msg); } } but this code never been called i am wondering, why ?
-
Hi All i am trying to override the PreProcessMessage for the form and i am using this code public override bool PreProcessMessage(ref Message msg) { switch (msg.Msg) { case WM_RBUTTONDOWN: return true; default: return base.PreProcessMessage(ref msg); } } but this code never been called i am wondering, why ?
Do you call the code yourself? If not then i can't see you being able to get the return value from it. Are you sure you don't mean to override WndProc?
My current favourite word is: Bauble!
-SK Genius
-
Do you call the code yourself? If not then i can't see you being able to get the return value from it. Are you sure you don't mean to override WndProc?
My current favourite word is: Bauble!
-SK Genius
-
This method should be called by the by the framework, and i dont want to override the WndProc