Using WndProc for my C # .net application

I would like to know if I am using WndProc in my C # .net application to handle a minimization event on my form, would there be any problem if my application is installed on a different windows version or a different platform? like xp, 2k3, etc.?

+2


source to share


2 answers


If you're not mistaken, no.

Native C apps work the same way and they work on all versions of Windows (provided they are written correctly).



In general, if you go beyond WinForms and start using the WndProc or Win32 APIs (P / Invoke), I recommend you read Raymond Chen's blog , which outlines many common mistakes when working with your own window.

+2


source


Not. WndProc wraps the standard windowing API that has been around for many, many years on Microsoft platforms.



Minimize events are very standardized and will work on any MS platform without issue.

+1


source







All Articles