Solved

minimize in taskbar

Posted on 2000-03-22
3
339 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi XE10, DigitalPersona Fingerprint reader and MySQL 6 220
Thread safe  opinion 7 126
ddeman not working in activex 3 93
DBGrid or StringGrid ? 6 71
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

895 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now