 |
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: Start MENU Hwnd
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
hStartMenu = FindWindow("DV2ControlHost", vbNullString) |
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
16-03-2006 at 09:01 PM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: Start MENU Hwnd
Hmmm... dont have Me with me, you could try with the "BaseBar" class, like in 98SE.... Could be that "DV2ControlHost" is only for XP, and in the rest of the WIn OS is "BaseBar"...
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
16-03-2006 at 11:50 PM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: Start MENU Hwnd
Yes yuo can, but it will have affect only on the start menu, not the programs window. You will need to get the handle of that window too. As for the Win2k, dont have it with me also, but since you have an app that will return Classes, then it shouldnt be difficult. If that app also shows the visible state of windows, then just search fir the invisible ones, since it is in invisible state...
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
17-03-2006 at 09:29 PM |
|
|
Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: Start MENU Hwnd
You dont search for invisible classes, you search for invisible windows. Example:
1) use EnumWIndows API to get handles of all the windows.
2) you can also use GetWindowText to get the text of the window, in WinXP for start menu window it is "Start Menu" - this is how I found it
3) There is a IsWindowVisible API to tell you whether window is visible or not.
As for the programs menu, never tried it, and I am now not great with time, so I cant play with it at the moment. You should first investigate if AllPrograms is a 'window' or is a menu, so you can know what you are dealing with.
____________________________
If you find the answer helpful, please mark this topic as solved.
|
|
20-03-2006 at 01:51 AM |
|
|
|
|
 |
 |