Is there a way to get (at least for windows) the current window handle for the game during runtime?
Specifically looking for the windows HWND type object.
Any help is appreciated!
Is there a way to get (at least for windows) the current window handle for the game during runtime?
Specifically looking for the windows HWND type object.
Any help is appreciated!
include the windows header.
And just get it as you whould normaly.
Dont know if there are any UE Spesific for this, but am thinking if you digg deep enofe you will find a method.
is the native way.
[HWND WINAPI GetActiveWindow(void);](http://msdn.microsoft.com/en-us/library/windows/desktop/ms646292%28v=vs.85%29.aspx)
Hope it helps.
.
or just use built in Slate function in SWindow class
GEngine->GameViewport->GetWindow()->GetNativeWindow()->GetOSWindowHandle();
/** Gets the OS Window handle in the form of a void pointer for other API's */
virtual void* GetOSWindowHandle() const;
There you go the UE spesific i did not know about.