Diable Restore Button
-
hi , I am not able to Diable the Restore Button (Minimize, Restore,close) of a SDI Application. Even though I have Disabled the Close Button By removing it from system Menu.But when i apply the same Procedure to Restore Buitton I am not able to Do tht.:confused: also, wht will be the Procedure to do the same in MDI Application.:confused: Vinod C S Integral Softech Technnolges Kochi
-
hi , I am not able to Diable the Restore Button (Minimize, Restore,close) of a SDI Application. Even though I have Disabled the Close Button By removing it from system Menu.But when i apply the same Procedure to Restore Buitton I am not able to Do tht.:confused: also, wht will be the Procedure to do the same in MDI Application.:confused: Vinod C S Integral Softech Technnolges Kochi
An option is to handle the
SC_RESTORE
message inPreTranslateMessage
(...). Once you handle it make sure you don't call Base class handler. ReturnTRUE
. This way you can disable the behavior ofSC_RESTORE
but the button remains there. Another option is to use Brute Force (Remove the System Menu itself) :evilgrin:
Nibu thomas Software Developer Faqs by Michael dunn