NativeWindow? Win32??
-
Hello, I'm a bit confused about the difference between: LRESULT CALLBACK WndProc(HWND hWindow, UINT msg, WPARAM wParam, LPARAM lParam); and virtual void WndProc(Message %m); I know that the first is to get message to menage event in win32, but so "WndProc(Message %m)" is the same thing when we are programming a Windows Form project? The last question is: when is better to use NativeWindow methos and when is better to use win32 methods to menage events? My project is a simple window form with a panel, on the Panel i call a window where I can menage OpenGL operations. Could someone help me? Thank you
-
Hello, I'm a bit confused about the difference between: LRESULT CALLBACK WndProc(HWND hWindow, UINT msg, WPARAM wParam, LPARAM lParam); and virtual void WndProc(Message %m); I know that the first is to get message to menage event in win32, but so "WndProc(Message %m)" is the same thing when we are programming a Windows Form project? The last question is: when is better to use NativeWindow methos and when is better to use win32 methods to menage events? My project is a simple window form with a panel, on the Panel i call a window where I can menage OpenGL operations. Could someone help me? Thank you
-
Hello, I'm a bit confused about the difference between: LRESULT CALLBACK WndProc(HWND hWindow, UINT msg, WPARAM wParam, LPARAM lParam); and virtual void WndProc(Message %m); I know that the first is to get message to menage event in win32, but so "WndProc(Message %m)" is the same thing when we are programming a Windows Form project? The last question is: when is better to use NativeWindow methos and when is better to use win32 methods to menage events? My project is a simple window form with a panel, on the Panel i call a window where I can menage OpenGL operations. Could someone help me? Thank you
Use a native window when you're working with native C/C++/WinAPI code and use the managed version when you're using managed code. Only reason to use native code when you have a managed project is if the managed version doesn't do something you need already (which is hardly ever the case).