maximize

How do you disable the Maximize button in MFC?

久未见 提交于 2020-01-03 17:01:15
问题 How do you disable the Maximize button/capability in an SDI application? 回答1: For completeness: int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { ModifyStyle(WS_MAXIMIZEBOX, 0); <etc...> } 回答2: ModifyStyle(WS_MAXIMIZEBOX,0,SWP_FRAMECHANGED); // disable maximize ModifyStyle(WS_MINIMIZEBOX,0,SWP_FRAMECHANGED); // disable minimize ModifyStyle(0,WS_MAXIMIZEBOX,SWP_FRAMECHANGED); // enable maximize ModifyStyle(0,WS_MINIMIZEBOX,SWP_FRAMECHANGED); // enable minimize try this, should be

How to make an undecorated window movable / draggable in JavaFX?

北城余情 提交于 2019-12-28 12:34:07
问题 I have to create an application in which minimize and maximize button will be disabled. I have used "StageStyle.UNDECORATED" with which the application will not be movable or draggable anymore, so I am searching for any other alternative to make my application. Do anyone having solution for this? 回答1: To achieve the window to be undecorated but still movable/dragable you have to handle the appropriate MouseEvent on any node of your choice. Example: import javafx.application.Application;

How to make an undecorated window movable / draggable in JavaFX?

老子叫甜甜 提交于 2019-12-28 12:33:08
问题 I have to create an application in which minimize and maximize button will be disabled. I have used "StageStyle.UNDECORATED" with which the application will not be movable or draggable anymore, so I am searching for any other alternative to make my application. Do anyone having solution for this? 回答1: To achieve the window to be undecorated but still movable/dragable you have to handle the appropriate MouseEvent on any node of your choice. Example: import javafx.application.Application;

Removing or disabling a resizable Tkinter window maximise button under Windows [duplicate]

心不动则不痛 提交于 2019-12-25 04:14:02
问题 This question already has answers here : Removing minimize/maximize buttons in Tkinter (2 answers) Closed 6 years ago . Looking for advice on how to remove or disable a resizable window's maximize button under Windows. I'm using Python 2.7 for Windows. Background: I have a resizable window with min and max sizes set via the window's minsize() and maxsize() methods. When a user clicks the maximize button, the window moves to the upper left of the display. This is very confusing to my users so

Problem when maximizing window in C++

核能气质少年 提交于 2019-12-23 10:17:45
问题 My program needs to arbitrarily maximize any window on the current desktop. I achieve this by calling ShowWindow(hWnd, SW_MAXIMIZE) , where hWnd is the HWND of the window I want to maximize. When that line of code executes, the window in question (here, Notepad) looks like this: Everything seems fine, except for the fact that the window has not been positioned correctly, i.e. the window seems to be a few pixels to low, and the title bar does not look "squashed" like it should. Compared to how

C# WPF Maximized Window's position

和自甴很熟 提交于 2019-12-23 06:13:55
问题 I have a window in an application created with WPF and C#. I have set MaxHeight=200, MaxWidth=500 and StartupLocation=CenterScreen.However maximizing this window makes it positioned on the left upper region of the screen i.e: not in the center any more! The maximized window is always on the left upper part even though I set Left=200 and Top=200 in the Window_StateChanged event on the condition of maximizing. private void Window_StateChanged(object sender, EventArgs e) { if (this.WindowState =

Keep window maximized with AutoHotkey?

时光怂恿深爱的人放手 提交于 2019-12-23 02:59:07
问题 I have an AutoHotkey script that launches an application maximized like this: `Run, myprogram.exe,, Max` It then gets rid of the minimize and restore buttons. I can still click on the task bar and drag downwards to restore the window. Is there any good way to keep my window maximized in AHK? How about just locking the window's position? 回答1: Does the F11 key maximize the app? When in F11 mode most apps completely lose their title bar. If so, run the app then send an F11 key (You may need to

Using min/max operator in integer programming

大城市里の小女人 提交于 2019-12-23 02:52:24
问题 I am trying to optimize an objective function using integer programming, I have to use Max operator in my function, I want to know is there any way to deal with that? Actually my question is similar to Using min/max within an Integer Linear Program but is different in some aspects: All variables are binary. Note that x4 and x5 are presented in two place. One possible solution is using auxiliary variables like the answer of similar question, but I am confused when using this solution for my

Maximizing a JFrame on action?

女生的网名这么多〃 提交于 2019-12-23 02:28:16
问题 Does anyone know how to maximize a JFrame once a specfic action has occured? I'll post my code below, I'm a fiend for not commenting my code (I'll do it at some point) but it should be fairly self explanitory. What I was trying to do was to get the frame to maximize once the option was selected from the menu. If anyone can tell me how I need to edit my code to pull this off, it would be greatly appreciated. Thanks! import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax

.Net/Winforms, Dual monitor - Borderless Window - Maximizing doesn't work

ぃ、小莉子 提交于 2019-12-23 02:07:10
问题 I have a question that were not answered on http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/fa521007-f317-48f1-9cdd-de2dbcb17aa8 (last posts are my posts). StackOverflow is better forum so could you help me :) Briefly: dual monitor configuration, primary monitor on right has lower resolution, on left side monitor with higher resolution (lo: 1280x1024; hi: 1680x1050). When maximizing on bigger one, window is larger than monitor (works only on left monitor) working on a borderless