rgn2121
asked on
Using windows API to set window location.
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)...
http://support.citrix.com/article/CTX115637
Thanks,
rgn
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)...
http://support.citrix.com/article/CTX115637
Thanks,
rgn
You may have tried this, but I think it should still work in all cases. Goto the Windows propreties of each child form and there is a Start Position. Change it to = Center Parent.
ASKER
that doesn't work...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.