Detecting window frame interaction, desktop, need help

since no one replies to my previous post, cocos2d-x’ api is horrible, and searching google doesn’t seem to help.

I need to detect if the user interacts with the window frame so I could pause everything inside the game from moving.

could anyone help?