Results 1 to 2 of 2

Thread: MAXIMISE windows.

  1. #1

    Thread Starter
    Hyperactive Member TiPeRa's Avatar
    Join Date
    Apr 2001
    Location
    In between
    Posts
    464

    MAXIMISE windows.

    When you maximise windows they do not take up the entire screen, they leave a small gap at the bottom for the taskbar. How can you change this. I have seen it somewhere, setting the area of the desktop that maximised windows occupy. Any ideas?
    -Thanks
    W#Ć€V€® W¦|| ߀ W¦|| ߀, ÄÑÐ †#€®€ ¦§ ÑÖ†#¦Ñ6 ¥Öµ ©ÄÑ ÐÖ ÄßÖµ† ¦†, §Ö §¦† ßÄ©K, ®€|ÄX ÄÑÐ |€† ¦† #ÄÞÞ€Ñ.
    (Whatever will be will be, and there is nothing you can do about it, so sit back, relax and let it happen.)

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Code:
    'Give you full screen without have to hide taskbar 
    
    Private Declare Function SetWindowPos Lib "user32" _ 
    (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 Long) As Long 
    
    Private Declare Function GetSystemMetrics Lib "user32" _ 
    (ByVal nIndex As Long) As Long 
    Const SM_CXSCREEN = 0 
    Const SM_CYSCREEN = 1 
    Const HWND_TOP = 0 
    Const SWP_SHOWWINDOW = &H40 
    
    Private Sub Command1_Click() 
    Dim cx As Long 
    Dim cy As Long 
    Dim RetVal As Long 
    ' Determine if screen is already maximized. 
    If Me.WindowState = vbMaximized Then 
    ' Set window to normal size 
    Me.WindowState = vbNormal 
    End If ' Get full screen width. 
    cx = GetSystemMetrics(SM_CXSCREEN) ' Get full screen height. 
    cy = GetSystemMetrics(SM_CYSCREEN) 
    ' Call API to set new size of window. 
    RetVal = SetWindowPos(Me.hwnd, HWND_TOP, 0, 0, cx, cy, SWP_SHOWWINDOW) 
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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