Add entry to right-click context menu of window in MS Window

Code help, language discussions, and software development advice.
Post Reply
whackity
Registered User
Posts: 3
Joined: November 14th, 2004, 6:00 am

Add entry to right-click context menu of window in MS Window

Post by whackity »

Hi all.

I need to write a program that will add an entry and some functionality to the menu that pops when you right-click on the title bar of any window in Windows. The menu that contains the Restore, Move, Size, Minimize, etc.

What API do I need to investigate to do this in Windows? Would this type of extension be a Shell Extension or is it something else? Anyone know of an example anywhere? I'm sure it can't be that hard, but I'm having trouble locating any leads. Thanks in advance.

--John
Tebow2000
Registered User
Posts: 1099
Joined: January 19th, 2004, 7:56 am
Location: New Orleans, Louisiana
Contact:

Post by Tebow2000 »

I don't know even where to start, but if u get that program to work, SEND IT HERE!!!
Redcode Hosting redcodehosting.com | Unix Shared Hosting | sales[aT]redcodehosting[dOt]com
Smartweb
Registered User
Posts: 622
Joined: January 15th, 2004, 2:11 am
Contact:

Post by Smartweb »

Windows doesn't let you change the title bar menu, but you may be able to do that if you create a new shell for Windows. I would not recommend that though.
whackity
Registered User
Posts: 3
Joined: November 14th, 2004, 6:00 am

Post by whackity »

Smartweb wrote:Windows doesn't let you change the title bar menu, but you may be able to do that if you create a new shell for Windows. I would not recommend that though.
When you say create a new shell, do you mean like a write a new window manager? Or shell as in the Windows Shell?

The program I want to write is basically an extra entry on the context menu of the title bar that centers the window. Have any other suggestions? Another thing I could do is create a program that can be launched using a hotkey that centers the window in focus. Yeah, that might work.
Smartweb
Registered User
Posts: 622
Joined: January 15th, 2004, 2:11 am
Contact:

Post by Smartweb »

Yes, I meant create a new window manager.
whackity
Registered User
Posts: 3
Joined: November 14th, 2004, 6:00 am

Post by whackity »

Smartweb wrote:Yes, I meant create a new window manager.
Well that would definitely be over-engineering. :-)

I think I'm just gonna go with my hotkey idea. Thanks for the input!
Post Reply