Results 1 to 2 of 2

Thread: Maximize Form

  1. #1
    Guest

    Exclamation

    How can I maximize a window using APIs? I was able to find the handle of the window, but I couldn't figure out what to do about the PostMessage API call. Thanks!

  2. #2
    New Member
    Join Date
    Jun 2000
    Posts
    15
    Here you go...

    Use the API ShowWindow cmd, to maximize or minimize a form

    'Your API:

    Public Declare Function ShowWindow Lib "user32" Alias "ShowWindow" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long

    'Your Constants:

    Public Const SW_MAXIMIZE = 3
    Public Const SW_MINIMIZE = 6

    'here is the possible proc

    public max_me()
    showwindow(formhwn&,SW_MAXIMIZE)
    end sub

    Maybe that will help you...
    Hopefully that is of help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width