graydwarf Posted February 11, 2015 Share Posted February 11, 2015 I'm launching an application, waiting for it to load, and then calling the following line: WinMove ( "Untitled - Dream Maker", "", 700, 300, 800, 600 ) Everything appears to work great until I drag that window around. When I do that, the window unexpectedly resizes to something slightly different but does so consistently. I searched through the forums and couldn't find any related hits so I'm wondering it the application I'm targeting. Something that may be of interest. There's some wonky behavior because after the above line, I tried calling WinActivate() and then the same WinMove() line again to see what would happen and when I moved the window, it actually resized to something different but does so consistently. I'm at a loss. Any ideas? Link to comment Share on other sites More sharing options...
graydwarf Posted February 11, 2015 Author Share Posted February 11, 2015 Noticing the drag handle for the window is suddenly appearing when I drag/move the window around which is likely causing the resize. Link to comment Share on other sites More sharing options...
graydwarf Posted February 11, 2015 Author Share Posted February 11, 2015 I solved the problem by calling WinSetState() with SW_RESTORE before calling WinMove(). For my purposes, this workaround will be good enough. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now