How to disable the close icon in the title bar of an MFC Dialog after dialog creation?
-
Hello, In addition to catching the
WM_CLOSE
event, I would like to disable the close icon on the dialog title bar when some critical section is being parsed in my application. Is this possible?, For those that use Nero Burning Room, when you are burning a CD/DVD, the close icon on the dialog title bar is dissabled.. How can be this done under MFC? http://img82.imageshack.us/img82/1588/disableclose7uy.gif[^] I guess that the style of the window is changed withSetWindowLong()
, but I don't manage to find how. Thanks in advance.-- **Ricky Marek** (_AKA: rbid_)
-- "Things are only impossible until they are not" --- Jean-Luc Picard My articles -
Hello, In addition to catching the
WM_CLOSE
event, I would like to disable the close icon on the dialog title bar when some critical section is being parsed in my application. Is this possible?, For those that use Nero Burning Room, when you are burning a CD/DVD, the close icon on the dialog title bar is dissabled.. How can be this done under MFC? http://img82.imageshack.us/img82/1588/disableclose7uy.gif[^] I guess that the style of the window is changed withSetWindowLong()
, but I don't manage to find how. Thanks in advance.-- **Ricky Marek** (_AKA: rbid_)
-- "Things are only impossible until they are not" --- Jean-Luc Picard My articles -
Hello, In addition to catching the
WM_CLOSE
event, I would like to disable the close icon on the dialog title bar when some critical section is being parsed in my application. Is this possible?, For those that use Nero Burning Room, when you are burning a CD/DVD, the close icon on the dialog title bar is dissabled.. How can be this done under MFC? http://img82.imageshack.us/img82/1588/disableclose7uy.gif[^] I guess that the style of the window is changed withSetWindowLong()
, but I don't manage to find how. Thanks in advance.-- **Ricky Marek** (_AKA: rbid_)
-- "Things are only impossible until they are not" --- Jean-Luc Picard My articlesCheck this out :- http://www.codeguru.com/Cpp/W-D/dislog/menuhandling/article.php/c1931/[^] Regards, FarPointer
-
Hello, In addition to catching the
WM_CLOSE
event, I would like to disable the close icon on the dialog title bar when some critical section is being parsed in my application. Is this possible?, For those that use Nero Burning Room, when you are burning a CD/DVD, the close icon on the dialog title bar is dissabled.. How can be this done under MFC? http://img82.imageshack.us/img82/1588/disableclose7uy.gif[^] I guess that the style of the window is changed withSetWindowLong()
, but I don't manage to find how. Thanks in advance.-- **Ricky Marek** (_AKA: rbid_)
-- "Things are only impossible until they are not" --- Jean-Luc Picard My articlesGetSystemMenu(FALSE)->RemoveMenu(SC_CLOSE, MF_BYCOMMAND);
-
GetSystemMenu(FALSE)->RemoveMenu(SC_CLOSE, MF_BYCOMMAND);
RemoveMenu or ModifyMenu.:omg: Regards, FarPointer
-
RemoveMenu or ModifyMenu.:omg: Regards, FarPointer
of course Fisrt Hi FarPointer whats the problem?
-
of course Fisrt Hi FarPointer whats the problem?
he doesnt wants to remove it all he wants is to disable it . Regards, FarPointer
-
he doesnt wants to remove it all he wants is to disable it . Regards, FarPointer
yes (he wants only disable)
-
Hello, In addition to catching the
WM_CLOSE
event, I would like to disable the close icon on the dialog title bar when some critical section is being parsed in my application. Is this possible?, For those that use Nero Burning Room, when you are burning a CD/DVD, the close icon on the dialog title bar is dissabled.. How can be this done under MFC? http://img82.imageshack.us/img82/1588/disableclose7uy.gif[^] I guess that the style of the window is changed withSetWindowLong()
, but I don't manage to find how. Thanks in advance.-- **Ricky Marek** (_AKA: rbid_)
-- "Things are only impossible until they are not" --- Jean-Luc Picard My articlesIt is so simple when you know it :)
-- **Ricky Marek** (_AKA: rbid_)
-- "Things are only impossible until they are not" --- Jean-Luc Picard My articles