borderless

Borderless Window Covers Taskbar

浪尽此生 提交于 2021-02-11 14:19:29
问题 I have a custom-made borderless window. When maximized, it covers the taskbar. This is not what I want. I have played with the WM_GETMINMAXINFO message. But, I have found that Windows 10 will then leave an extra 8-pixel gap along both the bottom and right side. It is an all-or-nothing proposition. Here is the first code that I tried: case WM_GETMINMAXINFO: PMINMAXINFO pmm; pmm = (PMINMAXINFO)lParam; pmm->ptMaxSize.x = GetSystemMetrics(SM_CXSCREEN); pmm->ptMaxSize.y = GetSystemMetrics(SM

Round corners on a borderless NSWindow

大城市里の小女人 提交于 2020-01-13 03:41:51
问题 I'm creating an application and I don't want a title bar: If the title remains the same all the time, does it make sense to show it? For example, if an app doesn’t show the names of documents, or any other assets that it opens, and there is plenty of space at the top around other controls to grab onto if you want to move the window around, does the title serve much purpose? The problem is: how do I do this? I tried using [mainWindow setStyleMask:NSBorderlessWindowMask]; but I can't make it

Round corners on a borderless NSWindow

不想你离开。 提交于 2020-01-13 03:41:39
问题 I'm creating an application and I don't want a title bar: If the title remains the same all the time, does it make sense to show it? For example, if an app doesn’t show the names of documents, or any other assets that it opens, and there is plenty of space at the top around other controls to grab onto if you want to move the window around, does the title serve much purpose? The problem is: how do I do this? I tried using [mainWindow setStyleMask:NSBorderlessWindowMask]; but I can't make it

Borderless Window with Drop Shadow

£可爱£侵袭症+ 提交于 2020-01-09 10:29:14
问题 I'm trying to achieve something like Visual Studio installer does with borderless window and drop shadow: I tried various options like CS_DROPSHADOW and DWM API, but as soon as I apply the WS_THICKFRAME style the shadow disappears. This is my code for creating and centering a window: RECT R = {0, 0, _clientWidth, _clientHeight}; AdjustWindowRect(&R, WS_OVERLAPPEDWINDOW, false); _mainWnd = CreateWindow(L"D3DWndClassName", _mainWndCaption.c_str(), WS_OVERLAPPEDWINDOW, 100, 100, R.right, R

How to resize a borderless window from top only?

女生的网名这么多〃 提交于 2020-01-05 04:17:16
问题 I am creating a WPF application and want my window to be borderless, and also possible to be resized only from the top. What I have tried so far I initially thought this would work: <Window x:Class="WpfApplication3.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Width="200" Height="150" WindowStyle="None" ResizeMode="CanResize" AllowsTransparency="True" BorderThickness="0,5,0,0" BorderBrush

Qt: Resize borderless widget

六眼飞鱼酱① 提交于 2019-12-30 04:59:14
问题 My question is basically the same as this one, but applied to the Qt C++ framework. I am implementing a popup window by inheriting QWidget with flags Qt::QPopup | Qt::QWindow. I would like this window to be moveable and resizeable, I'm currently achieving this by using the mouse events in the following code: void TextPopup::mousePressEvent(QMouseEvent* event) { offset = event->pos(); QWidget::mousePressEvent(event); } void TextPopup::mouseMoveEvent(QMouseEvent* event) { if(event->buttons() &

FormBorderStyle.None removes the native open effect of windows 8

吃可爱长大的小学妹 提交于 2019-12-29 08:54:07
问题 I like to have my form borderless in C#. So I used this code: FormBorderStyle = FormBorderStyle.None; But it removes the aero effect of windows 8. The form opens suddenly like a blink. How can i bring the aero effect back? 回答1: I am answering my own question using the C++ reference I wrote a class inherited from Form Class. Each form in application should be inherited from this class instead of Form Class. public class AeroForm : Form { int _w = 100, _h = 100; bool aero = false; [StructLayout

How to put a shadow to a Frameless window in Qt

允我心安 提交于 2019-12-28 13:47:13
问题 I'm trying to create a Frameless window that has a shadow under it.When we create a borderless window with Qt::FramelessWindowHint flag it doesn't contain a shadow. But we can put shadows to a child widgets easy by creating a QGraphicsDropShadowEffect object and then pass it to the widget through setGraphicsEffect function. But this doesn't seem to work for QMainWindow. Please help me to put shadow to a frameless window in Qt... 回答1: You can do it using this simple hack: Add a "QWidget" (say

Autohotkey: Remove window border

六月ゝ 毕业季﹏ 提交于 2019-12-25 01:44:59
问题 I would like to display just some text with a background. Despite my attempts, there is a lot of empty space around the text. Gui, +AlwaysOnTop -Border -SysMenu -Caption Gui, Add, Text, , Some text Gui, Show, AutoSize WinSet, Style, -0xC00000, A WinSet, Style, -0x40000, A WinSet, ExStyle, -0x00000200, A If, instead of AutoSize , I manually set the size, the text is cut. 回答1: If you add a border to the text, i.e., Gui Add, Text, Border, Some text you'll see it is indeed the window itself with