Uchwyt menu

0

Witam!
Chce pobrac menu w moim programie, Wygląda ono tak:

bleble1
|
|bleble2

chce pobrac uchwyt "bleble2" hehe kombinowalem z FindWindowEx itd... ale cos mi nie idzie....( nie chce urzywac np. bleble2.Handle)
pozdrowka i z gory dziekuje za wszelką pomoc

0

bleble1.Find('Caption bleble2').handle!

0

mam takie pytanko: a jak mając uchwyt tego pod menu zasymulować kliknięcie na niego? proszę o pomoc

0

WM_CLICK??

0

:-) mam jeszcze jedno pytanko: jak znaleźć uchwyt podmenu, ale innego programu?

0

Poczytaj Windows SDK albo Encyklopedie. Na pewno będzie w tym pierwszym, a czy w drugim to nie wiem.


The GetMenu function retrieves a handle to the menu assigned to the specified window.

Syntax

HMENU GetMenu(
          HWND hWnd
);

Parameters

hWnd
[in] Handle to the window whose menu handle is to be retrieved.


The GetSubMenu function retrieves a handle to the drop-down menu or submenu activated by the specified menu item.

Syntax

HMENU GetSubMenu(
    HMENU hMenu,
    int nPos
);

Parameters

hMenu
[in] Handle to the menu.
nPos
[in] Specifies the zero-based relative position in the specified menu of an item that activates a drop-down menu or submenu.

1 użytkowników online, w tym zalogowanych: 0, gości: 1