Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subclassing Menu Help

Status
Not open for further replies.

jrl237

IS-IT--Management
Jan 29, 2002
61
US
Okay, here's one for all the Subclassing Gurus out there.

Is there a way to add an item to the system menu that pops up when you right-click the desktop?

I'd like to add a Shutdown option (yes, like OS/2 has.) I can write the shutdown routine, but can't find a way to add it to the menu. I can stick it in the system tray, but old habits die hard, and I'd like to be able to do it with a right-click.

JRL
 
Not sure you need subclassing...
if you get the hWnd of the desktop you can use GetSystemMenu to get to the default menu handle.
then AppendMenu....
(haven't tried this!!!!)
check out URL: example for trackpopupmenu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top