Jump to content

How can I get the text of menu item whose type is ownerdraw?


mik
 Share

Recommended Posts

Hi, all,

I have a problem when I run the following codes:

$iMenuType = _Menu_GetItemType($hPopupMenu, $index)

if bitAND($iMenuType, $MFT_OWNERDRAW) then ConsoleWrite(' owner-draw')

So, I had got some "owner-draw" outputs. And the question is how I can get the text of menu items whose type is 'owner-draw'.

Edited by mik
Link to comment
Share on other sites

Hi, all,

I have a problem when I run the following codes:

$iMenuType = _Menu_GetItemType($hPopupMenu, $index)

if bitAND($iMenuType, $MFT_OWNERDRAW) then ConsoleWrite(' owner-draw')

So, I had got some "owner-draw" outputs. And the question is how I can get the text of menu items whose type is 'owner-draw'.

Nobody had met this problem before? I thought it was a challenging work, and I haven't had a method to resolve it yet. Anyone else can show some tips or some advice?

Thanks a lot in advance :0)

Link to comment
Share on other sites

Hi, all,

I have a problem when I run the following codes:

$iMenuType = _Menu_GetItemType($hPopupMenu, $index)

if bitAND($iMenuType, $MFT_OWNERDRAW) then ConsoleWrite(' owner-draw')

So, I had got some "owner-draw" outputs. And the question is how I can get the text of menu items whose type is 'owner-draw'.

Hi, all

so admirable that I want to draw your attention to this problem:-). if you use _Menu_GetItemText($hPopupMenu, $index), then you will get "".

and you can get tihs case by following steps:

1) Right-click the right pane in a window folder

2) Select "New"->"Microsoft Word Document" or "Microsoft PowerPoint Document" or "Text Document"

3) If we use _Menu_GetItemText($hPopupMenu, $index) to one menu item of the above three, we will get "", and the _Menu_GetItemType($hPopupMenu, $index) will be

$MFT_OWNERDRAW

Link to comment
Share on other sites

Hi, all

so admirable that I want to draw your attention to this problem:-). if you use _Menu_GetItemText($hPopupMenu, $index), then you will get "".

and you can get tihs case by following steps:

1) Right-click the right pane in a window folder

2) Select "New"->"Microsoft Word Document" or "Microsoft PowerPoint Document" or "Text Document"

3) If we use _Menu_GetItemText($hPopupMenu, $index) to one menu item of the above three, we will get "", and the _Menu_GetItemType($hPopupMenu, $index) will be

$MFT_OWNERDRAW

Who is the superman to this question? wish you get up, haha....................

Link to comment
Share on other sites

  • Moderators

4 bumps is enough in a row... (And don't count my post).

If someone knows the answer or wants to answer they will.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...