On Windows 8, what kind of events are generated when moving the mouse cursor to the top edge and then click-dragging downwards with the left mouse button? It brings the window to a state where it can be docked to either side of the screen or exited by dragging it to the bottom of the screen.
Share
It’s the Activated event in Windows::UI::Core::CoreWindow. The callback function’s args variable gives a WindowActivationState (Deactivated, CodeActivated or PointerActivated). An example of how to implement it can be found in the Microsoft XAML DirectX 3d shooting game sample.