Jim Kring Posted September 11, 2019 Report Share Posted September 11, 2019 (edited) 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. 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 September 12, 2019 by Jim Kring 1 Quote Link to comment
Benjamin R Posted September 12, 2019 Report Share Posted September 12, 2019 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. Hope this helps. Benjamin 1 Quote Link to comment
Jim Kring Posted September 12, 2019 Author Report Share Posted September 12, 2019 Thanks, Benjamin! Any chance you could post your example VI? I can't seem to place the snippet PNG. Quote Link to comment
Benjamin R Posted September 13, 2019 Report Share Posted September 13, 2019 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 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.