winapi - Hooking an app's taskbar tab events - c++

I'm having trouble hooking event messages sent when a user left/right clicks on the app's tackbar tab. I have tried implementing OnNcLButtonDown and the like but no events are ever triggered when I click on the app's tab. Is there a possible COM solutions?

There is an undocumented windows message: code 0x0313 that is send when a user right clicks on the app's taskbar button. Dunno whether its stable to hook though.

Related

Can we create a custom notification popup for Microsoft Teams's application

Can we have a custom notification popup for Microsoft Teams's application; similar to below but with customized buttons.
If you want to get a pop up in team chat window you can use Task module deeplink. If you want to get a popup in a meeting then you can use Content Bubble.

Launching an UI or an application when a system tray notification is clicked

I have created a system tray icon notification. I need to launch an application when the notification is clicked. How can I do that using C++? I have read about the IUserNotification2 interface from MSDN documents, but I'm not sure how to implement them. It would be so helpful if someone can share an example code for a click event.

How to disable right click for IWebBrowser2 (C++)

I embedded a web browser in MFC dialog by using IWebBrowser2 class.
Every time when the dialog is opened, this browser will display a pdf.
However, when I right click on this pdf, it will have the context menu. I don't want the web browser has the context menu, is there any way for me to disable it?
I tried to edit pdf content, but seems like there is not way to disable the right click by editing the pdf. By checking the interface of IWebBrowser2 and its parent class, I didn't seen any API like OnRightClickButton etc.
I use PreTranslateMessage in the dialog, but it cannot be triggered when I right click on the web browser

How to click ok Button on alert box in calabash android

When i login to my app it will ask me for permissions to access camera roll and notifications i need to click OK button on those Popups . can any one tell me how to write step definitions for that?
Calabash 0.5.15 installs your app with all permissions already granted. Can you upgrade?
https://github.com/calabash/calabash-android/blob/master/changelog/0.5.15.md
If this isn't an option for some reason, there is a hacky way that you can work out the buttons location and send a touch event using adb. I really don't recommen this though - Calabash handling "Complete action using" dialog

how to prgramatically trigger mouse click in c .net

I am new to c++.net. I want to programatically trigger mouse click event of webBrowser, the reason is that I use the webBrowser control to display the .ppt file and I want it to automatically jump to the second page without clicking the mouse. Is there any way to trigger the mouse click event programatically?
thanks.