Page 1 of 1

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

Posted: November 14th, 2004, 6:08 am
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

Posted: November 14th, 2004, 5:08 pm
by Tebow2000
I don't know even where to start, but if u get that program to work, SEND IT HERE!!!

Posted: November 14th, 2004, 10:15 pm
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.

Posted: November 15th, 2004, 8:03 am
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.

Posted: November 15th, 2004, 9:47 pm
by Smartweb
Yes, I meant create a new window manager.

Posted: November 16th, 2004, 3:19 am
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!