GetActiveWindow() not found in 4.15

I have UE 4.14. project and try open it in 4.15 but project not compiling.
This code work fine in 4.14 but show “GetActiveWindow() is undefined” in 4.15:
FDesktopPlatformModule::Get()->OpenFileDialog(GetActiveWindow(), “…”, “”, “”, “…”, 0, OutFilenames);
How may I get window handler in UE 4.15?
I do not know it a bug or not because do not set “bug” tag.

Hey AinTen,

Try including the following:

 #if PLATFORM_WINDOWS
#include "Windows/WindowsSystemIncludes.h"

#include "AllowWindowsPlatformTypes.h"
#include <Windows.h>
#include "HideWindowsPlatformTypes.h"
#endif 

This should allow you to access the function, as it worked on my end. This is likely due to the include what you use header changes that were made in 4.15. You’ll need to make sure you’re including the files you need, as they are no longer including by default in most cases.

Have a great day

Hello Sean Flint
Thanks for help! It work nice!