How do you get the main windows handle in c++? in .net it is easy but how in c++?
Printable View
How do you get the main windows handle in c++? in .net it is easy but how in c++?
There are a docens of way to do it:
1. GetParent.
2. GetWindow.
3. FindWindow.
4. If you are using WndProc or DialogProc, you should use the first paramater to use the window handle.