Jump to content
Sign in to follow this  
Merchants

how to remove the GUI title bar in windows ?

Recommended Posts

Merchants

how to remove the GUI title bar in windows ?

like #NoTrayIcon

Posted Image

Share this post


Link to post
Share on other sites
AdmiralAlkex

You need to set another window as the parent (last parameter of GuiCreate), like the desktop or the hidden autoit window. Here's example for both:

GUICreate("Test1", 200, 100, -1, -1, -1, -1, WinGetHandle("Program Manager"))

GUISetState()

Do
    Sleep(10)
Until GUIGetMsg() = -3


AutoItWinSetTitle("WeDontWantToHaveTheSameNameAsOtherScripts")
GUICreate("Test2", 200, 100, -1, -1, -1, -1, WinGetHandle(AutoItWinGetTitle()))

GUISetState()

Do
    Sleep(10)
Until GUIGetMsg() = -3

Share this post


Link to post
Share on other sites
Fantastic

Use $WS_EX_TOOLWINDOW as extended style if it fits your needs.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 443, 192, 124, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

Share this post


Link to post
Share on other sites
Merchants

1e that is the best one

your solution is a completely other style

that's more for a custom use

Edited by Merchants

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.