Jump to content
Jim Kring

White strip at top of windows that are resizable and have no titlebar (Windows 10)

Recommended Posts

Has anyone noticed that if a window (A) has no titlebar AND (B) is resizable, then it will have a white stripe at the top of it? (see screenshot below, and note that the big titlebar is not actually a titlebar, but a styled button, and the actual titlebar is hidden)

Has anyone figured out how to get rid of this white strip (perhaps with Windows API calls)? I know I can get it to go away if I make the window NOT resizable, but I don't want that -- I need to be able to resize.

image.png.bd936c04d46ca3e76353ea97f548c1b0.png

I've done a little googling and the only thing I can really find how to set up WPF properties for the windows, and I can't seem to find any magic user32.dll calls or anything like that.

Here's an example: white strip at top of window.vi

Thanks for any help or ideas.

 

Edited by Jim Kring

Share this post


Link to post
Share on other sites

Hi Jim, 

Have you try to use the Region Functions from the Windows API? You can download an LLB that call this API on here.

Below an example base on the size of a Tab control. 

RegionFunctionExample.png.30279de62c21f37dd5b790abf9da42fe.png

 

Hope this helps.

Benjamin

  • Like 1

Share this post


Link to post
Share on other sites

Thanks, Benjamin! Any chance you could post your example VI? I can't seem to place the snippet PNG.

Share this post


Link to post
Share on other sites

Hi Jim, 

Here an exemple. I just see that this example does not allow to resize the window. I will try to find a way to be able to do so. I know that there is a way in C# explain in this video.

Let me know if this helps. 

SizeWindowToTab.zip

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.