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
    51
    Posts
    934
    Rep Power
    109

    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 Images Attached Images
    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
    7,128
    Rep Power
    732

    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 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

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

    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
    7,128
    Rep Power
    732

    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 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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