Sign in to follow this  
Followers 0
graydwarf

After using WinMove (), dragging the window will unexpectedly resize it

3 posts in this topic

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?

Share this post


Link to post
Share on other sites



Noticing the drag handle for the window is suddenly appearing when I drag/move the window around which is likely causing the resize.

Share this post


Link to post
Share on other sites

I solved the problem by calling WinSetState() with SW_RESTORE before calling WinMove(). For my purposes, this workaround will be good enough.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0