Jump to content
Sign in to follow this  
mik

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

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

Share this post


Link to post
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)

Share this post


Link to post
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

Share this post


Link to post
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....................

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...