|
-
Aug 18th, 2000, 05:34 PM
#1
Thread Starter
Lively Member
I need to know how to popup a Menu, with the contents of the Start Menu, including all it's subfolders and all shortcuts.
Don't tell me to visit vbAccelerator for help with this, cause I can't get his code to work, already tried everything.
And if possible I want to know how to copy each icon to...
Please help me if you can!
-
Aug 18th, 2000, 08:12 PM
#2
transcendental analytic
Well at least something done, here's something i just made, it pops the startmenu at position 500,200 with size 200,200
Code:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function MoveWindow Lib "user32" (ByVal hwnd As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal bRepaint As Long) As Long
Private Sub Form_click()
a = FindWindow("BaseBar", vbNullChar)
MoveWindow a, 500, 200, 200, 200, 1
ShowWindow a, 5
End Sub
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Aug 18th, 2000, 10:49 PM
#3
you could read the contents of C:\WINDOWS\Start Menu and use API to create a popup menu and loop through all the items in the folder, and add them to the popup menu.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|