Hi guys,

When I call GetOpenFileName() it opens in the top-left corner for a split-second before appearing in the center of the screen.

I tried different parameters for OPENFILENAME.hwndOwner and OPENFILENAME.hInstance but it didn't help.

I noticed that if I enable a hook with the flag OFN_ENABLEHOOK it displays fine but it's an older style dialog box, I want the Win 8 one that I get without the hook flag.

What should I do ?

Thanks.