Questions tagged [window-style]
40 questions
1
vote
0 answers
Question about SetParent API, it doesn't work on Windows 11
Good evening everyone
So sorry for my mediocre english
I have a question about the SetParent API. When I run the window on Windows 10, it works correctly and contains any program I want
But when the program is executed on Windows 11, it does…

Wesam Nafaa
- 27
- 5
1
vote
1 answer
In WPF, how do I create a dialog-like window (i.e. gray background with no border around the client area)?
I'm trying to create a simple 'dialog'-type window in WPF. However, for this specific instance, I do not want the client area to have a border, or even a background for that matter. I just want my controls to appear over the background of the…

Mark A. Donohoe
- 28,442
- 25
- 137
- 286
1
vote
1 answer
Python - PyQt4 window options not showing at the corner of made window
Recently, I have been looking to make my own title bar using PyQt4. While searching for a method, I ran into this awesome post. The problem is, when I ran it, the window options (Close, Minimize, and Maximize) were not there. Only when I hovered…

xilpex
- 3,097
- 2
- 14
- 45
1
vote
1 answer
Error when execute storyboard to close a window open in showdialog
I have get back this error when the Storyboard close the window 'This Visual is not connected to a PresentationSource.'
my scenario consist in two window and one UserControl
this is window1's xaml code:

luka
- 605
- 8
- 15
1
vote
1 answer
Defining Window Style Constants in VBA (0x00000000 vs &H000)
This might be a pretty basic question, but I've been searching and cannot find an explanation.
I'm playing with API functions for dialog boxes in VBA and I want to declare constants for the Window Styles as defined here so I can try to use the…

CBRF23
- 1,340
- 1
- 16
- 44
1
vote
2 answers
How to override WindowStyle in WPF
Can anyone show me how to override the WindowStyle in WPF application? preferablly in XAML.
I'm writing an application and I want to customize the top bar of the window.
I know I can change it with , but I'm not able to do any customization with…

Fever
- 251
- 1
- 5
- 12
1
vote
1 answer
WPF Windowstyle None + Create DropShadow using Native Windows API
I want to create a borderless Window via Windowstyle=None, but still want the default OS DropShadow effect.
I do NOT want to draw the border myself because i do NOT want to set AllowTransparency=True (the application runs on low end systems where…

Sebastian
- 316
- 1
- 3
- 12
1
vote
1 answer
CS_DROPSHADOW window style do not work
I creating a child window with CS_DROPSHADOW style, but the shadow is not displayed.
I tried to call SystemParametersInfo(SPI_SETDROPSHADOW, 0, (PVOID) TRUE, 0); but it also not helpful.
Can someone explain to me what's wrong?
WNDCLASSEX wcex;
…

user1544067
- 1,676
- 2
- 19
- 30
1
vote
1 answer
How can I get a window to look like a frame?
It should look like the little box that appears when you click the Action Center, Power, Network, or Sound icon in the tray. It needs to have that glass border without the title bar.
It also needs to be a fixed size and not resizable. Thanks to…

Phoenix Logan
- 1,238
- 3
- 19
- 31
0
votes
0 answers
When WS_SIZEBOX is set, even if WS_CAPTION is canceled, the title bar will still be displayed and then disappear
When the WS_SIZEBOX (same as WS_THICKFRAME) style is set for the window and WS_CAPTION is not set, the title bar will appear on the window, and the title bar will disappear after a title bar event is triggered, leaving a white bar.
Here is the demo…

Xi Minghui
- 95
- 1
- 9
0
votes
1 answer
Win32: how does the OS decide to re-assign focus on window close?
When a focused window is closed, Windows will typically set focus to a different window when possible. I'm trying to figure out what exactly causes this to happen, and in what scenarios does this not occur.
I'm noticing that when some windows are…

L. Berger
- 266
- 2
- 15
0
votes
1 answer
AvaloniaUI - how to change the 'style' of the window (borderless, toolbox, etc)
I'm trying out Avalonia UI and I need a ToolWindow. I tried different approaches but the wpf equivalent WindowStyle seems not supported. The only thing I was able to do was to use 'CanResize', but even that allows resizing via the max button ...
...…

Geertie
- 237
- 4
- 15
0
votes
0 answers
Windows Style Theming Makes Window Stutter When Dragged
I have investigated this problem across some different computers with theming/classic-theme and/or theme support disabled in my app...
Problem when Windows is configured to draw the window while dragged + theme drawing enabled:
My primary app window…

Tom
- 3,587
- 9
- 69
- 124
0
votes
1 answer
MFC: Context Help (? Button) to Title Bar of MDIframe
In MFC how can we add (?)context help button in title bar of childframe.
I tried to add window style on precreatewindow but it does not display help button in title bar.
I know how to add contexthelp on dialogs and propertysheet but I am unable to…

khalid khan
- 73
- 2
- 5
0
votes
1 answer
How could providing Parent Window as Pattern - WPF
Consider I have 4 Window on my project and I try to provide specific Closing button and one Title
How could I make a object of window and all of window use it as Pattern.
Here is Example of what we have for pattern window:

Serareh Azimi
- 75
- 6