Questions tagged [window-style]

40 questions
16
votes
1 answer

Difference between ThreeDBorderWindow and SingleBorderWindow

In WPF XAML, WindowStyle can be None, SingleBorderWindow, ThreeDBorderWindow, ToolWindow. I tried the options myself and also looked into MSDN, yet I cannot tell any difference visually between ThreeDBorderWindow and SingleBorderWindow. The…
KMC
  • 19,548
  • 58
  • 164
  • 253
6
votes
1 answer

How to hide the PowerShell window when running a .ps1 script in Task Scheduler?

I am trying to run a PowerShell script using Task Scheduler and it pops up a PowerShell command console window. Is there a way to disable this while running the script and hide the window? I've tried -WindowStyle Hidden but the PowerShell command…
Zulfiqar Dholkawala
  • 458
  • 2
  • 5
  • 19
5
votes
7 answers

How to check if a window style exists in a hexadecimal?

I have a question regarding a window style hexadecimal. According to http://support.microsoft.com/kb/111011/en-us, 0x16CF0000 contains window styles of WS_VISIBLE, WS_CLIPSIBLINGS, WS_CLIPCHILDREN, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME,…
Moon
  • 22,195
  • 68
  • 188
  • 269
4
votes
2 answers

Getting window style

I'm trying to check if a window has a certain style using GetWindowLong(hWnd, GWL_STYLE) but that gives me a LONG type of variable. how would you check for a specific style from that say a const value type 'WS_CAPTION'?
cpx
  • 17,009
  • 20
  • 87
  • 142
3
votes
3 answers

Maintain taskbar visibility with WPF Window.WindowStyle = none

I am developing a WPF application. I completely got rid of the standard windows border and created my own by setting the WindowStyle to None and AllowsTransparency to true. The only problem is that when the window is maximized it fills the entire…
lace.john
  • 1,051
  • 2
  • 17
  • 22
3
votes
2 answers

Irregualr behaviour with windows taskbar when making my application 'full screen' (WPF)

I am working on an application that has a full screen mode. When the full screen button/key is pressed the application should take up the entire screen i.e. the windows taskbar also disappears. this.Window= WindowState.Maximized; this.Window=…
Joseph Devlin
  • 1,754
  • 1
  • 26
  • 37
3
votes
2 answers

Setting window styles with Tkinter/Tcl: no exit button

I know that Tkinter is just a thin layer over Tcl/Tk. Tkinter you can do a few things to change the windows styling. One example would be root.attributes('-toolwindow', True). This would change the window style, to that of a tool window. However,…
rectangletangle
  • 50,393
  • 94
  • 205
  • 275
3
votes
1 answer

Window style not visible in designer

I created a Window style (WPF) and added it as a dll to my project this style shows corretly when i run the program but doesn't show up in the designer. I googled already but none of the solutions there are working Test 1: // Window…
Sascha
  • 63
  • 8
3
votes
3 answers

How to hide all windows when using .Run in VBA, when windowStyle=0 is not sufficient

When launching an .exe using .Run in VBA, a typical call may look like this: x = wsh.Run(Command:="program.exe ""argument""", WindowStyle:=0, waitonreturn:=False) Where windowStyle=0 should theoretically cause the program to run invisible to the…
Petrichor
  • 975
  • 1
  • 9
  • 22
3
votes
3 answers

Toggle Process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden at runtime

I want to toggle a process's visibility at runtime, I have a Windows Form app that starts via a process another console app hidden by default but I'd like to allow the admin user to toggle this state via a checkbox and show the console app if they…
m3ntat
  • 3,635
  • 11
  • 38
  • 50
3
votes
2 answers

`SetWindowLong()` function doesn't change window style even after calling `SetWindowPos()`

I create the static control with the code below: hWnd = CreateWindowExW( 0, L"STATIC", Content.c_str(), SS_LEFT | WS_VISIBLE | WS_CHILD /*| SS_SUNKEN*/, …
hkBattousai
  • 10,583
  • 18
  • 76
  • 124
3
votes
1 answer

WPF exception WindowStyle.None

I have the MainAppWindow XAML like this:
sergiol
  • 4,122
  • 4
  • 47
  • 81
2
votes
1 answer

CreateWindowEx creates old (Windows 7) style border on Windows 10

Whenever I create a window with CreateWindowEx(...) (exact parameters can be found in the code below), it shows up like an old style window: Only when I start it on a remote desktop, close the connection and reconnect, it changes to the desired…
T. J. Evers
  • 391
  • 1
  • 13
2
votes
2 answers

Win32 prevent window "snap"

How can I disable the snap feature of Windows 7 for my application (progmatically)? Or is there any way to detect if the application has been snapped, and specifically call an API function to unsnap it? Calling SetWindowPos() or ShowWindow() does…
2
votes
2 answers

Modifying window style by editing binary?

CyLog’s WildRename is a good program for performing batch-renames on files. The problem with it is that while the main window is resizable, it does not have the maximize box which makes it a little frustrating to size and use. Moreover, they have…
Synetech
  • 9,643
  • 9
  • 64
  • 96
1
2 3