locked
SystemParameters vs SystemInformation RRS feed

  • Question

  • i am trying to get system parameter, i see there is 2 methods

    1. systemparamets

    2. systeminformation

    why 2 and which one is used for what purpose

    i am looking to get window title , but both methods not giving exact values

    Sunday, July 5, 2020 9:28 AM

All replies


  • i am looking to get window title , but both methods not giving exact values

    Which "window title"  ?

    The title of a window is GetWindowText

    Sunday, July 5, 2020 9:52 AM
  • Apparently you wanted to get the caption height

    I answered in your other thread 

    Sunday, July 5, 2020 10:14 AM
  • Hello windows metrics,

    >>> "i am looking to get window title"

    @Castorix31 is right. Have you tried GetWindowText?

    Best regards,

    Rita


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, July 10, 2020 9:23 AM
  • Thank you, is any way to get exact title height also?

    Friday, July 17, 2020 6:20 AM
  • Hello windows metrics,

    You can use GetTextExtentPoint32 function to get its height. Refer to String Widths and Heights for more detailed information.

    [This “Application Compatibility for Windows Desktop Development” Forum will be migrating to a new home on Microsoft Q&A, please refer to this sticky post for more details. ]

    Best regards,

    Rita


    "Win32 API" forum will be migrating to a new home on Microsoft Q&A !
    We invite you to post new questions in the "Win32 API" forum’s new home on Microsoft Q&A !
    For more information, please refer to the sticky post.

    Monday, July 20, 2020 2:00 AM