Link to home
Start Free TrialLog in
Avatar of rgn2121
rgn2121Flag for United States of America

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
Avatar of Howard Cantrell
Howard Cantrell
Flag of United States of America image

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.
Avatar of rgn2121

ASKER

that doesn't work...
ASKER CERTIFIED SOLUTION
Avatar of rgn2121
rgn2121
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial