I am not very familiar with Windows API code, but I have an issue that requires it and I could use some help. I am needing to use WINDOWLONGHOOKS and/or COLORADOHOOKS to make sure that when a new window opens that it loads centered over the main window. Generally the main window in the app will be maximixed and the additional windows smaller.
The app only has issue on a dual monitor setup within Citrix. I have been told that the hooks listed above have been enabled for my application. Everything works fine as far as maximizing and minimizing the main window, but all new windows open in the primary display, when they should open where ever the current app is running, display 2, 3...etc.
I have linked the citrix article that talks about these hooks (bottom of the article)...