Minimize Window in C++ With a Custom BP Node?

The function trying to do is not static, on what do you calliing Minimize on? Can you paste code?