HELP WANTED!
-
hello @all, i have a mdi program. in the mainframe you have for example: File -> Close i would like to hide 'Close' to the users until the correct password entered. enter password: View -> Password the 'Close' should not be gray or something like that. the user should not see that there is something like the 'Close', until he enter the right password. i hope you can help me. (please, give me an example or explain it in detail) thank you very much MFC
-
hello @all, i have a mdi program. in the mainframe you have for example: File -> Close i would like to hide 'Close' to the users until the correct password entered. enter password: View -> Password the 'Close' should not be gray or something like that. the user should not see that there is something like the 'Close', until he enter the right password. i hope you can help me. (please, give me an example or explain it in detail) thank you very much MFC
What you want to do is BAD UI! If the user start your application and cannot close it until he enters a password, it's offensive ! user still can kill the application ... But I will give you a hint: Check for CMenu::DeleteMenu ... Anyway, I suggest you review your application workflow. Max.
-
What you want to do is BAD UI! If the user start your application and cannot close it until he enters a password, it's offensive ! user still can kill the application ... But I will give you a hint: Check for CMenu::DeleteMenu ... Anyway, I suggest you review your application workflow. Max.
thanks for reply. the 'Close' is only an example.....sorry.....you are right. can you help me more? mfc
-
thanks for reply. the 'Close' is only an example.....sorry.....you are right. can you help me more? mfc
MFC is the Best wrote: the 'Close' is only an example.....sorry.....you are right. can you help me more? In what way ? Design ? Code ? I don't know exactly what you intend to do ? so this is highly speculative : If your application needs a password, it should be asked at the beginning, in a modal dialog, upon return of that dialog, if the password is wrong, you have the choice to either continue ( and you need to be able to check whether the password is valid or exists to block most operations with the ON_UPDATE_COMMAND_UI messages for menus and other type of check ) or quit. If you continue running the application, you need a menu item to allow the user to enter the password. Max.