Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MoveWindow help needed
Message
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00451412
Message ID:
00451448
Views:
18
Mark,

Look at the code over on my website, Q&A, General, qGEN014. It uses SetWindowPos which uses a WINAPI convention that the things you don't want to change are send as 0 parameter values.

If you have the full VisualStudio install then it's easy to create a C++ wrapper function that you can call from VFP with simple type parameters and populate the struct, this is sometimes a lot easier than fiddling with building the structs as strings in VFP.

>I want to show another application window and move it to a specific location on the screen. I know how to show it and bring it forward. However, the only API routine I can find that seems to be appropriate for moving it is MoveWindow, but it requires you to also specify the size of the window. I don't want to change its size. I don't want to have to emulate RECT structs in VFP to get its size. I just want to move the window, size unchanged. How do I do that? Thanks!
>
>By the way, regarding the thread about the knothead VB developer who keeps knocking VFP... the longstanding and total lack of intrinsic support for binary structures within VFP is a good reason to knock it, no? It's one of the few I can think of.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform