?
Solved

Resize Window

Posted on 2003-02-18
1
Medium Priority
?
157 Views
Last Modified: 2010-04-07
Can anyone tell me how to resize a window like explorer or any window.

Thanks for any help
0
Comment
Question by:HillCountryFare
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
State earned 300 total points
ID: 7978180
Public Enum SetWindowPosFlags
  SWP_NOACTIVATE = &H10
  SWP_NOCOPYBITS = &H100
  SWP_NOMOVE = &H2
  SWP_NOOWNERZORDER = &H200      '  Don't do owner Z ordering
  SWP_NOREDRAW = &H8
  SWP_NOSIZE = &H1
  SWP_NOZORDER = &H4
End Enum

Declare Function SetWindowPos Lib "user32" Alias "SetWindowPos" (ByVal hwnd As Long,  _
                                    ByVal hWndInsertAfter As Long, _
                                    ByVal x As Long, ByVal y As Long, _
                                    ByVal cx As Long, ByVal cy As Long, _
                                    ByVal wFlags As SetWindowPosFlags) As Long

Public Sub MoveWindowByHandle(ByVal hwnd As Long, ByVal Left As Long, ByVal Top As Long)

Call SetWindowPos(hwnd, 0, Left, Top, 0, 0, SWP_NOSIZE + SWP_NOZORDER + SWP_NOACTIVATE)

End Sub
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month9 days, 18 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question