Jump to content

Is it possible to remove entire frame?


qwert
 Share

Recommended Posts

I've used the following steps to remove the title bar from an application window. Does anyone know of a combination that will remove the entire frame around the window, leaving the window to appear as a image floating on the desktop?

$hWnd = WinGetHandle("TestApp")
WinSetStyle($hWnd, $WS_POPUPWINDOW + $WS_THICKFRAME, $WS_EX_CLIENTEDGE + $WS_EX_TOOLWINDOW)

Using $MS_BORDER makes a thinner frame, but it is still too much for what I'm trying to achieve.

Thanks for any suggestions.

Link to comment
Share on other sites

I found a way to accomplish it, although probably from some fluke instead of being the correct way. You can add the $WS_EX_WINDOWEDGE extended style to the control to remove the border.

Indeed, that does seem to work. I'll have to test it with some of my other combinations to make certain.

Thanks very much for the response.

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...