Solved

minimize in taskbar

Posted on 2000-03-22
3
344 Views
Last Modified: 2010-04-04
How can I disable the minimize and restore option when the user clicks the mouse's right button in the taskbar ?
0
Comment
Question by:voxel
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 50 total points
ID: 2645511
Hi
you can remove them completely by doing:

removemenu(GetSystemMenu(Application.Handle, false),SC_MINIMIZE,MF_BYCOMMAND or MF_GRAYED or MF_DISABLED);
removemenu(GetSystemMenu(Application.Handle, false),SC_RESTORE,MF_BYCOMMAND or MF_GRAYED or MF_DISABLED);

Regards Barry

ps,
you should be able to do this:
EnableMenuItem(GetSystemMenu(Application.Handle, false), 0, MF_BYCOMMAND or MF_DISABLED or MF_GRAYED);
EnableMenuItem(GetSystemMenu(Application.Handle, false), 0, MF_BYCOMMAND or MF_DISABLED or MF_GRAYED);


but it dont seem to work all the time..
0
 
LVL 17

Expert Comment

by:inthe
ID: 2645522
note enablemenuitem
should have SC_MINIMIZE & SC_RESTORE where the 0 are.i was testing other stuff .
0
 

Author Comment

by:voxel
ID: 2645713
EnableMenuItem is not working in my computer too.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question