As I read in the MSDN, the owner window of the button gets with WM_COMMAND message, if a button is pushed (BN_PUSHED) or released (BN_UNPUSH).
if so in your App, you could
BN_PUSHED: nLastTick=GetTickCount();
BN_UNPUSHED: if ((GetTickCount()-nLastTick)>3000 /*time in ms*/){
StartTheOtherDialog();
};
I hope I could help a bit
set/reset a bool to find out whether is still pressed an at the time of each pushing get tic
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.