开发者

How to popup menu using SendMessage?

开发者 https://www.devze.com 2022-12-23 03:53 出处:网络
I have pop-up menu, for example: \"...\" \"PopUp-menu\" \"Menuitem1\" \"Menuitem2\" \"...\" How to popup \"PopUp-menu\" using SendMessage function? Is it possible? course Menuitem has ID, and P

I have pop-up menu, for example:

  • "..."
  • "PopUp-menu"
    • "Menuitem1"
    • "Menuitem2"
  • "..."

How to popup "PopUp-menu" using SendMessage function? Is it possible? course Menuitem has ID, and POPU开发者_StackOverflowP menu - has not


the "ID" of a popup menu is its handle, but it's not clear what you mean by "popup the menu using SendMessage". What you would normally do is to get the handle of the "PopUp-Menu" and then pass that to TrackPopupMenu rather than SendMessage.

0

精彩评论

暂无评论...
验证码 换一张
取 消