Handling WM_INITMENUPOPUP
-
-
Hello, how can I cancel(close) the popup menu when I decide to do that in the WM_INITMENUPOPUP notification handler ? I've tried to call DestroyMenu() on provided menu handle but it does not work althought it returns 1 (success). Thank you!
rrrado
How you are creating menu, can you show it? Because,I suspect, you are using temporary handle to menu(which is supposed not to use), to destroy menu.
Prasad Notifier using ATL
-
How you are creating menu, can you show it? Because,I suspect, you are using temporary handle to menu(which is supposed not to use), to destroy menu.
Prasad Notifier using ATL
User is creating the menu so I think that handle is temporary. I haven't found this information that it's not for destruction - so how can I close the menu ? I've also tried PostMessage(WM_CHAR,VK_ESCAPE,1); to owning window's handle it also failed.
rrrado
-
User is creating the menu so I think that handle is temporary. I haven't found this information that it's not for destruction - so how can I close the menu ? I've also tried PostMessage(WM_CHAR,VK_ESCAPE,1); to owning window's handle it also failed.
rrrado
-
User is creating the menu so I think that handle is temporary. I haven't found this information that it's not for destruction - so how can I close the menu ? I've also tried PostMessage(WM_CHAR,VK_ESCAPE,1); to owning window's handle it also failed.
rrrado
-
User is creating the menu so I think that handle is temporary. I haven't found this information that it's not for destruction - so how can I close the menu ? I've also tried PostMessage(WM_CHAR,VK_ESCAPE,1); to owning window's handle it also failed.
rrrado
rrrado wrote:
User is creating the menu
How ?
rrrado wrote:
I haven't found this information that it's not for destruction - so how can I close the menu ?
It can be used for destruction, but its temporary, means you cannot store it ,and use from some other function. Can you show some code?
Prasad Notifier using ATL
-
rrrado wrote:
User is creating the menu
How ?
rrrado wrote:
I haven't found this information that it's not for destruction - so how can I close the menu ?
It can be used for destruction, but its temporary, means you cannot store it ,and use from some other function. Can you show some code?
Prasad Notifier using ATL
-
User press context menu key or right click. I'm not storing handle for later use. But it does not matter now as I've wrote before i've solved it by sending WM_CANCELMODE message. Thank you all guys for your time!!!
rrrado
rrrado wrote:
I've wrote before i've solved it by sending WM_CANCELMODE message
I've seen your post , after posting mine. And today, there seems to be problem with modifying post. So, it is there as it is. :)
Prasad Notifier using ATL