473,386 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Showing the background (desktop) context menu.

Hi all.
I know there is a lot of mystery around the desktop context menu.
Plenty of brickerbrack about adding shell menu extensions, but not
much on shownig it. Using ShellContextMenu interfaces, it's easy to
show context menus for files and folders, but the explorer context
menu is elusive.

I can show it, but I'm wondering if someone could help me out with a
kink. It's easy to find the desktop HWND and post a right click
message to it if you can send a point where a file is not located.
Then the context menu is at the given position and it is not active.
Clicking an active item in the context menu works fine. Trying to
cancel the menu is more unusual. You need to click somewhere disabled
inside the menu to activate it and then click off.

Pseudo code, because I don't have access right now:

IntPtr desktopHWND = FindWindow("Progman", "Program Manager");
desktopHWND = FindWindowEx(ProgMan, 0, "whatever this was", null);
PostMessage(desktopHWND, <right click>, 0);

Can anybody help me out? There must be a way to find the window and
activate it programatically.

Thanks
BoeroBoy

Sep 27 '07 #1
0 1346

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: vince.guzman | last post by:
Need help with showing Layer 4 after menu times out onmouseout _______________________________________________ <html> <head> <script language="JavaScript"> <!-- function mmLoadMenus() { if...
0
by: Snow | last post by:
I went to know how to add a menuitem into the desktop context menu,not context menu in directory or file? It can to be ravel out by using registry. Thanks a lot!!
7
by: gabe | last post by:
I've been looking unsuccessfully for resources on building apps that show up on the desktop's context menu. Any ideas?
4
by: rsteph | last post by:
I've found a javascript menu download, I've been tweaking it within a testpage, and getting it to look just right. I finally got everything looking right, all I have to do is alter where the links...
6
by: Stephen Edwards | last post by:
I am a novice, so bear with me. I designed a website using CSS TABS, all was fine, then I copy and pasted meta name, etc for keywords, tweaking it where necessary for keywords. I did not notice...
4
by: adrian.bennett | last post by:
I am trying to dock a form to the desktop like the taskbar is but I have been unable to figure out how to do this. Can anyone help? Thanks
2
by: Andreas Mueller | last post by:
Hi All, I'm trying to show a context menu during a drag drop operation similar to the windows explorers right click drag and drop behavior (A full working sample is at the end of the post): ...
2
by: mdejac | last post by:
I was wondering why the background color is not showing up in Mozilla. When I view the page there is a light blue background, when it should be black. Thank you for any help. ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.