Solved

how can i add my own program to the system menu? (right click on title bar)

Posted on 2004-04-05
12
257 Views
Last Modified: 2010-04-17
Is there a way either through writing a program, or preferrably adding something inside the registry that I can add my own program to the system menu? (the menu when you right click on the title bar in windows, eg:  restore, move, size, minimize, maximize, close.)

I want to add a "Stay on Top" feature.
But all I seem to find on the internet is how to add items to explorer's context menu.

Can anyone help?
0
Comment
Question by:Icu
12 Comments
 
LVL 5

Expert Comment

by:ChrisPy
Comment Utility
You should probably go to the Community section and request to move this to one of the Programming Topic Areas... better chance of getting someone who focuses on your kind of issue.

Good luck!

ChrisPy
0
 

Author Comment

by:Icu
Comment Utility

Thanks for the suggestion, the request is in.

0
 
LVL 22

Expert Comment

by:_TAD_
Comment Utility
Icu>  As a programmer I can tell you that some functions in MS Windows cannot be changed, they are "hardcoded" for the most part and not configurable through a registry entry.

That doesn't mean that this problem cannot be solved, but be warned that you may not receive the answer you want.


If you were writing your own program I could suggest that you look at the Windows API for setting the zOrder. The window with the zOrder of 0 is the top most window.   The function "Show Desktop" sets the desktop window's zOrder (hWnd ID: 0) to 0.

just a thought....
0
 
LVL 14

Expert Comment

by:JohnK813
Comment Utility
I saw a sidebar in the April '04 PC World (or was it PC Magazine) about a tool that will add buttons next to the Min, Max, and Close buttons for Always on Top, Shade (show titlebar only, like on a Mac), and a few other things.  

http://www.pcworld.com
http://www.pcmagazine.com

As soon as I find my copy of the magazine, I'll get you the name of this program.

0
 
LVL 1

Expert Comment

by:ajnabitou
Comment Utility
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 3

Expert Comment

by:GoSu
Comment Utility
There are programs that will modify the behavior of DefWndProc (the windows API function that provides the basic windowing functionality of 99% of all windows programs). Winshades is an example of this. However I BELIEVE (I could be wong) that the system modifaction required for that renders your Windows Installation Unsupported by Microsoft.

However as mentioned above if you are making your own program you can add this functionality to only your program no problem.
0
 

Author Comment

by:Icu
Comment Utility
Thanks for all the help so far, but I do want this functionality for all open windows, not just for a single program.
JohnK813 seems to be the closest to providing me with a solution.

But I would prefer some type of source code showing how to do this for all windows programs, not just a specific one. (any coding language is fine eg: c/c++/java/perl/python/.net/VB...)
0
 
LVL 14

Accepted Solution

by:
JohnK813 earned 250 total points
Comment Utility
Here's the program (finally):  It's called MinMaxExtender.  The company doesn't support it any more, and they say it's open source now.

Here's the PCWorld site:
http://www.pcworld.com/downloads/file_description/0,fid,23116,00.asp

Here's their site:
http://www.monctoncomputerservice.com/revenger_inc/index.html

The 23 July 2003 entry mentions the source code going open source.  The source can be found on the Downloads page.
0
 

Author Comment

by:Icu
Comment Utility
JohnK813

The way that program works is it adds it's own separate buttons into the title bar of the program, not actually into the system menu. And even though that's not what I was expecting it's a perfectly good solution.
So you'll definitely get some of the points and if the correct solutions isn't posted in a couple days you'll get them all.

Thanks for tracking that down.
0
 

Author Comment

by:Icu
Comment Utility
Ok, I found c++ source that does what I was wanting but due to quick clicking I don't know where it came from or who wrote it. So if your interested you can get the source here but I make no claim to it.

http://alan.intercite.net/downloads/always_on_top_system_menu.zip

Also if anyone else finds source in any other languages please post a link.

John you can have the points thanks for you help.
0
 
LVL 14

Expert Comment

by:JohnK813
Comment Utility
Glad I could help, at least to some extent.  Thanks for the points.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

772 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

12 Experts available now in Live!

Get 1:1 Help Now