Solved

minimize in taskbar

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

705 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

19 Experts available now in Live!

Get 1:1 Help Now