Results 1 to 4 of 4

Thread: user32dll + window size

  1. #1
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    45
    Posts
    914
    Rep Power
    101

    user32dll + window size

    ..quite another thing

    how can I get more infos/content about "user32.dll" property?

    [code=thinbasic]uses "console"

    %Screen_Info = 48

    DECLARE FUNCTION SystemParametersInfo LIB "USER32.DLL" ALIAS "SystemParametersInfoA" _
    ( _
    BYVAL uAction AS DWORD, _
    BYVAL uParam AS DWORD, _
    BYREF lpvParam AS ANY, _
    BYVAL fuWinIni AS DWORD _
    ) AS LONG

    TYPE RECT
    nLeft AS LONG
    nTop AS LONG
    nRight AS LONG
    nBottom AS LONG
    END TYPE

    FUNCTION TBMAIN() AS LONG
    LOCAL rc AS RECT

    CALL SystemParametersInfo(%Screen_Info,0,rc,0)
    MSGBOX (0, "size width = " & TRIM$(STR$(rc.nRight)) & " and size height = " & TRIM$(STR$(rc.nBottom)), %MB_OK, "workspace info")

    TBMAIN=0
    END FUNCTION[/code]

    good night, frank lionheart
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	window-size.png 
Views:	83 
Size:	25.7 KB 
ID:	6192  
    you can't always get what you want, but if you try sometimes you might find, you get what you need

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,807
    Blog Entries
    3
    Rep Power
    694

    Re: user32dll + window size

    Hi Frank,

    you can have a look here, it is tool long list to retype it here:
    MSDN

    MSDN is usually good source for Win32
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

  3. #3
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    45
    Posts
    914
    Rep Power
    101

    Re: user32dll + window size

    thanks petr, but can you check your msdn link in last post again ? it doesn't work for me, cannot load this page ("server not found") etcpp. bye, frank
    you can't always get what you want, but if you try sometimes you might find, you get what you need

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,807
    Blog Entries
    3
    Rep Power
    694

    Re: user32dll + window size

    Hi Frank,

    I checked the link and in Firefox (at least) it works without problem.

    Anyway - try to visit msdn.microsoft.com and then search for SystemParametersInfo. You should get there in few seconds.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

Posting Permissions

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