AndreyS Posted August 13, 2013 Posted August 13, 2013 Need to deny the ability minimize the window and resize. I only found this way: GUICreate ("Control Panel", 1024, 720, -1, -1, -1, $ WS_EX_TOOLWINDOW) But still, you can open the window to full screen and minimize the context menu. How to prevent such a possibility, and from the context menu?
FireFox Posted August 13, 2013 Posted August 13, 2013 Hi,Something like this I guess :#include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <GUIMenu.au3> Local $hGUI = GUICreate("Control Panel", 1024, 720, -1, -1, -1, $WS_EX_TOOLWINDOW) Local $hSysMenu = _GUICtrlMenu_GetSystemMenu($hGUI) _GUICtrlMenu_DeleteMenu($hSysMenu, $SC_MINIMIZE, False) _GUICtrlMenu_DeleteMenu($hSysMenu, $SC_MAXIMIZE, False) GUISetState(@SW_SHOW, $hGUI) While GUIGetMsg() <> $GUI_EVENT_CLOSE Sleep(10) WEndBr, FireFox. AndreyS and VAN0 1 1
AndreyS Posted August 13, 2013 Author Posted August 13, 2013 Oooh! It turns out there is a special standard function! I'm sorry I did not find it right away! Thank you, FireFox! The issue resolved!
FireFox Posted August 13, 2013 Posted August 13, 2013 I'm sorry I did not find it right away! I made it myself I don't think it was on the forum, so no excuses
AndreyS Posted August 13, 2013 Author Posted August 13, 2013 Yes, not on the forum! In a help did not know that there is such a function. Thank you again! The truth is still full of other questions! )))
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now