Compartilhar via


Taking the Selection Focus

4/8/2010

A Windows Classic Home screen plug-in can also request the selection focus, such as in response to a user tap. To do so, the plug-in must send a TODAYM_TOOKSELECTION message to its parent window.

TODAYM_TOOKSELECTION is defined as (WM_USER + 102). The wParam is the handle to the plug-in window. The parameter lParam is not used and can be set to zero.

case WM_LBUTTONDOWN:
   PostMessage(GetParent(hwndPlugin), TODAYM_TOOKSELECTION, (WPARAM)hwndPlugin, 0);
   break;

See Also

Other Resources

Windows Classic Home Screen Plug-in Selection