-
Resizing a third-party application / Window handles
HI!
When my application is launched, I resize my application window and another
application's window so that they split the screen according to values for
Left, Top, Height, and Width that are stored in the registry. To resize
the other application's window, I've tried to use both the SetWindowPos and
the MoveWindow functions, but even though the application does get resized
to the size that I wanted, both commands "cut off" the menubar and toolbar
. Then, if I manually resize the application using the mouse, the menubar
and toolbar reappear.
A coworker had mentioned that I may not have the correct window handle.
In order to grab the window handle, I use a combination of EnumWindows and
GetWindowsText to find a match for the name of the application. Is the GetWindowsText
only grabbing the handle for the titlebar? If so, what can I use to grab
the container so that my SetWindowPos command works properly?
Any help in this matter would be greatly appreciated!
Thanks,
Vic
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks