Solved

minimize in taskbar

Posted on 2000-03-22
3
346 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

695 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