Jump to content

active window bar


Recommended Posts

title bar size i guess isn't affected by the focus

have you tried

_Winapi_SystemParametersInfo

My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Link to comment
Share on other sites

@vladedoty

I'm afraid the _Winapi_SystemParametersInfo is not efficient for your need. The caption size depends on the window style and as far as I'm concerned the results I got from this function and rarely the good ones.

Tell me if it's for your own script or for an external app so I can give you a workaround.

Link to comment
Share on other sites

Func _GUIGetCaptionHeight($hGUI)
    Local $htmpGUI = 0, $aGUIPos[1], $atmpGUIPos[1]

    $htmpGUI = GUICreate("", Default, Default, 0, 0, $WS_CHILD, -1, $hGUI)

    $aGUIPos = WinGetPos($hGUI)
    $atmpGUIPos = WinGetPos($htmpGUI)

    GUIDelete($htmpGUI)

    Return $atmpGUIPos[1] - $aGUIPos[1]
EndFunc

Link to comment
Share on other sites

what about a function to check if font smoothing is enabled/disabled

Without searching on the forum I don't know. You should rename this topic or start a new one if you want to get answers on this new question.

Br, FireFox.

Edited by FireFox
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...