Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Desktop Menu Handle


Hello !

Could you please help me to get a Handle on the desktop properties Menu.

Looking forward..




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Desktop Context Menu {hide Desktop Icons In WinXP}
my problem started when i found a submenu item for the desktop context menu (WinXP) that allowed me to hide my icons. i liked the look of my desktop like that, what i would really like is a button on my quicklink bar that could turn the icons on and off. as far as i could tell there is no way to do it with windows (ie. .scf script file like the "Show Desktop" quicklink button). so i opened up VB in hopes that i could use the windows API to deliver a click event to that menu item, so the icons would disappear with out actually displaying the menu for the user to see.

i found a code snippet on the net that showed how to hide the desktop window... causing the icons to disappear... but at the same time causes the desktop context menu to not function either. i looked over all the windows messages that i could send to a listview window in hopes that one of them would allow me to hide the icons... each solution seemed more and more complex.

is there a way to activate an menu item on the desktop context menu with out it being displayed?

Retrieving Desktop Handle
heya ppls i did a search on this but hundreds of posts come up, i got a hint it might be something like,

hwnd = GetDesktopWindow()

is that right?

Getting A Bitmap Handle For The Desktop Background
Hi,
I was wondering if it is possible to get a GDI bitmap handle to the background image used for the desktop. I think I may be able to get it by enumerating the GDI objects with EnumObjects, but I don't think that does bitmaps...

How To Get Handle To The Children Of A VB Window On The Desktop?
How do you get the handle of say a button on a VB form once you have its handle by locating it with its caption?

Thanks,
ns

Adding Menu In Desktop Context Menu
Hello,


Is a way to add your own menu in the desktop context menu as Nvidia drivers done, please?


Thanks in advance.

How To Get A Handle For Menu That....
hello,

I've a question here
Is it possible to get a handle (hWnd) for a menu that created by API
functions?
If yes, could u show me how to do it

Note:The menu is created with combination these API funtions:
CreatePopupMenu,....,finally,trackPopupMenu to display the menu.

Thanks, and Sorry for my English

Invalid Menu Handle
I am getting this error when loading and unloading a couple of MAXIMIZED MDIChild forms. Note that each time a form gets the focus, the MDIForm menu is updated, and it is in this function ( Line : mnuSave.Visible=True ) that it is crashing.
Anybody got this error before ?

Start Menu Handle
Hi, I need to know, how can I get START Menu handle (some API...).

Thank you.

Popuo Menu & Handle
Hi all

can someone show me how i can obtain the handle of a popup menu that appears in an external application's window after i've simulated, trought API, the right-click mouse button.
I need this 'cause i would send on this popup menu a string message (Alt + N), but the popup menu handle change anytime it appears.

Thanks.

Luppolo.

How To Get The Handle On A Floating Menu Bar
Hi all i got a floating menu bar. could any one show me how to get the handle on a floating menu bar? This is the manue i am talk about but not sure if it called floating or not.It apperas when i double click a listview item. i attached its pic.thanks

How Do I Get The Handle Of A Popup Menu?
Hi,

How do i get the handle of a popup menu?
I need to show a menu that was created with the menu editor using the TrackPopupMenu api.
I want to show the popmenu created with the menu editor on other objects then just on a form.

Thanks

UserControl Menu Handle
Hello,

Does anybody know how get a menu handle of a UserControl?
Following code returns menuhandle as 0. What am I doing wrong?

lhMenu = GetMenu(hWnd)

Thanks in advance.

Start Menu Handle?
How can i get the handle of the start menu?

Start Menu Handle?
I looked at this thread
http://forums.vb-world.net/showthrea...threadid=40282
And thought - cool, maybe I can add to it and disable the start menu off the Windows key too - thus completely disabling the start menu. I can do this using various registry hacks in NT, but not 98 e.t.c e.t.c

What I really want to do is get a handle to the start menu, and either Destroy the menu or set it to be invisible...

I looked at it using Spy++ and it (windows) seems to create the menu each time, I can't subclass the shell cause its not my process, I think im all outta ideas on this one - anyone got any?

(no real business need for this - just thought it might be a challenge)

Get Handle Of TaskBar's Menu?
I use API Getmenu(hwndOfTaskbar)
but this declaration not return any Menu
When I click right mouse on TaskBar a Menu appear how can I get it's handle ?



------------------
BlackRose

Popup Menu Handle
How can I get the Windows Handle of a Popup Menu ? I want to change the properties of some menu items (to cut the menu into two or more columns). Following the examples found elsewhere it works fine with a "static" menu, the menu of a form - I can ask Windows for the menu handle of a window. But I have no idea how to get from VB the handle of a popup menu.


How Do You Get Menu Control Handle
With most controls, you just read the Hwnd property. But when a menu control, there is now Hwnd property. Any idea on how to grab it?

Get Start Menu 's Handle?
I want Start Menu to popup exactly where I click the mouse, but I don't know its class name so so that I can
"FindWindow" and get its handle. Anyone know how to get the Start Menu 's handle (not Start button) please help me. Thanks in advance.

How Would I Get The Handle To Menu Of Microsoft Word.
Hi
   My Problem is i want to add one more menu item into the Microsoft word, but i failed in getting handle to the menu of Ms-word. Will U please give me a solution to add menu into Ms-word. I will be very thankful to u.
Shirin Saxena

Desktop Menu
Does somebody know to which window does rhe desktop menu belong(the one that appears on right mouse click)
I found the desktop wnd but using getmenu->getsubmenu doesn't return the menu handle.
How can i append to that menu.

Add To Desktop Popup Menu
when you right click the desktop you get a pop-up menu, arrange icons etc.. does anybody know how you can add to this

one of the keys on my keyboard is knackered and i want to be able to right click, select a menu item so i can copy the key into the clipboard and paste as needed.

Retrieve Applications System Tray Menu Handle
How would i got about retrieving another applications System Tray Icon Menu Handle ? I want to be able to add items to a certain applications system tray icon menu. Lets say I have a program open and its displaying its icon in the system tray.. When you right click the icon in the system tray, a menu will popup.. How would I get the handle to that menu so that I can modify it..

Thanx,
AAG

Retrieving The Handle Of Windows' Default Context Menu
Hello people,
Does anyone know how to retrieve the handle of Windows' default context menu, you know, the one that says "Arrange Icons", "Line Up Icons", etc., no matter how hard I try I can not retrieve its handle. The GetMenu API doesn't seem to work for me, although I may be just doing it wrong can anybody help me??

Refreshing Desktop & Start Menu....
I have been tinkering with the registry - making a little program that will remove desktop icons & start menu items, but the changes are only noticed after the desktop/start menu is refreshed...
So does anyone have some help on how to refresh the desktop & the start menu using code in vb?

Icon Desktop Popup Menu
Hi,

Anyone knows how to create the icon of your programm into the desktop popup menu?

Example: http://www.enterra-soft.com/products...reenshot.shtml

SHortcuts On Desktop And On Start Menu
I have made my program, and am curently making a little installer, because its only for some mates, and i cannt use the visual studio package fore making installers.

How can i get the shortcut to my application on the start menu and on the desktop?

thanks

paradox

Desktop And Start Menu Path
Hiii!
Well,I want to know the path of desktop and startmenu for different operating systems at runtime.Is this possible???
Is there any API function available for this?
Regards
Amita

Desktop Context Menu Question
I want to add a menu item to the context (right click) menu of the desktop. Anyone got an example of how to do this. Any help will be greatly appreciated.

Detect And Remove My App From Desktop And Start Menu
Hi All,

Can anyone give me some advice as to how to programmatically detect and remove instances of my app from the desktop and start menu.

I have to provide our service techs and test department with a utility application which cleans up the PCs that we use for various machines prior to them being loaded with different machine control programs.

I have the registry cleaning and file removal sorted out OK.
I now need to find a way of detecting and removing desktop shortcuts and start menu items.

As always, any help is greatly appreciated.

Explorer Menus And Desktop Popup Menu
Hi All

How can I "Edit" menu in add newitem

Edit
--- Cut
--- Copy
--- Paste
--- "New Item"

and desktop right click open popup menu in add newitem
Active Desktop >
Arrange Icons >
Line Up Icons
"New Item"
Refrehs
....
...

Tanks

Customise Popup Menu On Desktop Shortcut
I am trying to customise the right mouse click popup menu on a desktop icon/shortcut eg remove delete option or add other relevant option for that associated program. Any assistance would be appreciated.

(Resolved)...Disable Popup Menu On The Desktop
Hello,

I would like to disable popup menu on the Desktop with my program. I mean that when the user right clicks on the desktop nothing will happen.

Please help...


Thanks

vbBoy

Desktop Rightclick Menu, Helfin Bitte!!
Ok, im sure this has been asked, but I cannot find the answer within the forum...

I want to add my program to explorer's rightclick menu when you rightclick on the main image files. (bmp, gif, jpg)

So this is the idea of how it should go:
right click on your picture image
select my text from the menu
open the picture up in my program

and thats all that I am needing help on..

thanks all,
-Sac

(for those of you not understanding the menu i mean..)

Putting Shortcut On Desktop And Website URL On Program Menu
I want to put a shortcut of my application on the user desktop after installation. How can I do it using Package and deployment wizard?

And another question is....

I tried to add in a few menu items during the P&D wizard session when it asked me to prepare the menu structure of my app. I managed to put in some shortcuts to readme.txt, and other app. links and it works OK.

But when I put in a shortcut with something like "visit my website" with command line "http://www.mywebsite.com", I would expect clicking on this menu item will launch the default browser pointing to that URL, but it didn't. help!

Hide Start Menu And Desktop Icons! [ Works ]
i have two separate codes for hiding Starb Button and Hide Desktop icons but... thei arent so good!

Please give me a code for this! To work into the registry and to restart the computer for taking REAL efect of no Start and no Icons! What i have it`s just hidding as long the app is running, its... sux! Please help me!
Thanks!

How Do You Make The Set Up Routine Create A Shortcut In The Menu Or Onto The Desktop
Hi Guys
Can you make the set up place a shortcut onto the users menu system or even a shortcut onto the desktop is either possible and if so how is this done

thx
Locutus

Desktop Shortcuts, Quicklaunch Icons And Start Menu
Hi All,
I am creating a custom setup program for my application and i want to create a desktop icon for it, as well as including it in the quicklaunch area and the start menu. Does anyone know how to go about doing this? A pointer to a tutorial or some code would be fantastic, or if you can just post it here would be great also.

Thanx all in advance.

How To Delete The Shortcut To A Desktop And To A Program Menu Group.
The code below, will add a shortcut to a desktop and to a Program Menu Group. How would I delete the shortcut to a desktop and to a Program Menu Group.

Delete a shortcut from a desktop and from Program Menu Group

Sub Create_Shortcut_On_The_Desktop()

Dim lReturn As Long

File_Name_And_Location = Directory_Box & "A_VPN.exe"

'Add to Desktop
lReturn = fCreateShellLink("....Desktop", "A_VPN", File_Name_And_Location, "")

'Add to Program Menu Group
lReturn = fCreateShellLink("", "A_VPN", File_Name_And_Location, "")

lReturn = fCreateShellLink("Startup", "Shortcut to Web_Office_VPN", "c:A_VPNWeb_Office_VPN.exe", "")

End Sub

Attaching Handle Of Multiple Control To One Handle
i m associated with the project which required to process more then one controls at the time.
and we r using SendMessage api for that process. the problem is that we can give window handle of only one control to this api and not all. there is one solution in VC++ i suppose but i didnt able to find the solution in VB.

VC++ coding will be like this one
CWnd myWnd;
myWnd.Attach(hWnd1);
myWnd.Attach(hWnd2);
myWnd.Attach(hWnd3);

....... what ever process we have to execute

myWnd.Detach();


can any one solve my problem or can give vb code on the above vc++ code???

thanx in advance.
firoz

Getting File To Install In &"All Users&" Desktop And Start Menu Programs Instead Of &"Current
I am using the Visual Studio 6 Microsoft Development Environment to create an install package. I can get the program short cuts to install to the "Current Users" Desktop and Start Menu Programs folders, but not into the "All Users" area. The "File System on Target Machine" does not seem to give me a way to "All Users" folders, just the "User's Start Menu" and "User's Desktop". Does any one know how to fix that ?

Thanks,

Ralph

How To Convert A Cursor Handle To A BMP Handle?
how to convert a cursor handle to a BMP handle? When users are using another software, my program wants to know which cursor it is? There are two cursors in the 'another software', both are customized not system cursors. Is it possible to know current cursor is 'customized arrow' or 'customized flag'?

thanks

Getting A Window Handle From A Process Handle
I have the process handle of an external process
created from within my application. I know that the
process is windowed and has a parent/top-level window.
How do I get the window handle from the process
handle? Please suggest an API that gets the window
handle of the top-level window by taking a process
"handle" (clarified, not process ID).

Sathayish.

Get CabinetWClass Handle From SysListView32 Handle.
Get CabinetWClass handle from SysListView32 handle.
or how to get the path from a SysListView32 window.

I am trying to get the directory path from any Explorer window under the mouse pointer.
I have worked out how to get it when the mouse is over the titlebar (GetCabinetWClass)
but want to get the directory path when mouse is over the main (SysListView32) part of the window.

So is it possible to get the parent windows handle/name,
check if it's GetCabinetWClass, if not get parent window from parent
repeat until it is GetCabinetWClass or the top window.

My attached code gets the last window handle and not the parent window handle.

I am trying to save data from my program by dragging it to an Explorer window.
I don't want to use a CommonDialog to select the path.

The following code has been shortened to give you an idea how the code works. (See attachment)

Code:

' To get handle under pointer (See attached mod_WindowInfo.bas file)
Dim pt32 As POINTAPI
Call GetCursorPos(pt32)
ptx = pt32.X : pty = pt32.Y
hWndOver = WindowFromPointXY(ptx, pty)

' To get path from GetCabinetWClass (See attached Form1.frm file)
' Add reference to Microsoft Shell Controls and Automation
' and Microsoft Internet Controls
Private Function GetWindowsExplorerWindowFolder(hwnd As Long) As String
Dim myShell As Shell
Dim myExplorerWindow As WebBrowser
Set myShell = New Shell
Dim xxx As String
For Each myExplorerWindow In myShell.Windows
On Error Resume Next
If myExplorerWindow.hwnd = hwnd Then
If Err = 0 Then
xxx = myExplorerWindow.Document.Folder.Self.Path
Else
xxx = ""
End If
If xxx <> "" Then GetWindowsExplorerWindowFolder = GetWindowsExplorerWindowFolder + xxx + vbCrLf
End If
On Error GoTo 0
Next myExplorerWindow
Exit Function


It's quicker to drag than to use a CommonDialog tree.

[Not Resolved] Displaying An Animated GIF On The Desktop Like A Desktop Buddy
how can I display an animated gif on the desktop like a desktop buddy?

After Changing The Desktop In The Registry How Can The Effect Take Place In The Desktop
I write a program to change the Desktop key in the registry, but the effect on the display don't take place until i restart my computer. how can i make the display to affected after changing the value in the registry and without restarting the computer.

Adding Menu Controls To Menu Without Using Menu Editor
I am trying to make a Visual Basic program that connects to an Access database and searches for its menu options! If there are any menu options that are added to the access database, then the program will automatically display them on the form after it searches for all the records within the database. Is there a thread that already exists that explains how to do this with VB Code? Is the following thread - something I can use in this regard:

http://www.xtremevbtalk.com/show...u+items+editor
on thinker's reply about using a resource file?

I wasn't sure...

Thanks,

Stephen

How Do You Create A Menu Under A Menu Under A Menu And So On.. ? Confused?
Ok right now im using a custom control to display my favorites in the menu at the top. I made the code but the control has a different way of featuring a fake menu at the top of the program that makes it easier to create sub items off of menu items. I want to know how would I go about creating multiple menu's under menus..

Like in the favorites of Internet Exploerer you have Favorites --> VisualBasic --> VB Sites --> VB World

Something like that... So you would click on Favorites and then on Visual Basic and then on VbSites and under vb sites is the link to VB world..I know you can create a menu array but that only does one level. I dont know how to do multiple levels. I do think there is a way to add menu items with api..Any help?

Disable MDI Parent's System Context Menu Right &amp; Left Click Menu Pop-up. How?
I am trying to do this without much luck, but managed to get rid-of the Min/Max buttons via an MS example at the link below.

http://support.microsoft.com/default.aspx?scid=kb;en-us;137033

However, when a user right clicks on-the MDI parent's Caption bar, a popup up menu appears - Woud like to prevent that.

Secondly, if a user "LEFT" Click on the top Left corner of the same Caption bar (where the Icon appears); it pops the same Pop-Up Menu - Like to stop that.

Thirdly, If a user double clicks on the same menu bar, form flickers, bobs down & up (Min & back to Max state), looks back at you and say's "fooled Ya!", as if it was possessed by some sort of strange evil code. Now I Would really, really, like to make it stop doing that.

Basically, like to prevent any mouse action on MDI Parent's Title Bar. Searched for couple of hours in vain (pain), but nothing turned up for what I am looking for. I can stop the right click on the form it-self by detecting mouse down button, but that’s not preventing the click event in MDI parent's title/caption bar.

Anyone know how or what needs to be done to get this to work? Any and all help, suggestions, etc. will be greatly appreciated!

Add Menu Item To System Menu Of Excel Imported Form [SOLVED]
I'm trying to achieve above 2 items but can't find out how. I've searched this forum already but also can't find anything relevant so am hoping that some of you might be able to kick me in the right direction.

I'm creating a combined VB6 and excel application. Basically VB6 controls excel. The forms used are imports from existing excel applications where I didn't feel like recreating them all over again. Part from that, the excel tab control is way better and easier to use then the VB6 one.

Progress timer:
When starting the program I want to show a progress timer because the program needs to initialize many items and arrays used. I thus created a simple progress timer which depending makes certain pictures visible which form a simple progress bar. The timer used is the VB6 timer option since there's nothing relevant like that from excel. This works well in itself but the problem is with display of the timer. During start it shows the form on which it was created but the timer only starts working after all has been initialized which basically defeats its purpose. Does anybody have any idea how to conquer this one.

Add item to top left window menu:
I want to add a About option to the top / left menu of my program window, the one also containing the minimize and maximize options. I've seen it done in other programs and since it is the only menu item I need I would prefer to do it this way also. I can't however find any information on how to go about this. Hope that someone can give me a push in the right direction for this one as well.

Thanks in advance for any suggestions.

Best regards,

Leon

Copyright © 2005-08 www.BigResource.com, All rights reserved