Hi all ....
I need to get the dimensions of any active menu , as if I clicked a desktop and it's menu appeared , how can I adjust my timer control to get this menu Rect ,or the start menu , or any other menus.
Printable View
Hi all ....
I need to get the dimensions of any active menu , as if I clicked a desktop and it's menu appeared , how can I adjust my timer control to get this menu Rect ,or the start menu , or any other menus.
Have you been able to find the hWnd (window handle)? If so you can use the GetWindowRect() API function.
To get the dimensions of only the client area (not including borders) you would use the GetClientRect() API function. Although I think the first one is the one you'd want.
Finding the start menu is apparently easy (there's code to manipulate the start menu all over the net). For any active menu in the system (desktop right-click, other programs, etc.) I imagine it would be very difficult.
but if we know the class type of menu , I think we can find it's rect , cause if we use Forgroundwindow function return the handle of window contains the menu.I found many programs do that like SnagIt .
I believe it is possible if you solve this.
I have no idea about this.Quote:
Originally Posted by ashraf fawzy
Many thanks for your support , I'll try hard to find it .
Ya pal, it is better. Actually I'm not best in VB. Just put your issues here. I'll try it.