locked
Can get windows messages in Metro?

    Question

  • Hi,

    Can get windows messages in Metro?

    Thanks

    Monday, July 30, 2012 2:58 AM

Answers

  • No, Metro style apps do not use HWNDs and cannot get window messages. See Win32 and COM API for information about which Win32 and COM API are available to Metro style apps.

    As Nishant asks: what are you trying to do with window messages? There may be a way to achieve that goal via a supported mechanism.

    --Rob

    • Proposed as answer by Jesse Jiang Tuesday, July 31, 2012 7:26 AM
    • Marked as answer by woody tk Wednesday, August 01, 2012 3:32 AM
    Monday, July 30, 2012 5:33 PM
    Owner

All replies

  • What specific message are you trying to handle? There may be a more official workaround to your problem.

    http://blog.voidnish.com

    Monday, July 30, 2012 3:23 PM
  • No, Metro style apps do not use HWNDs and cannot get window messages. See Win32 and COM API for information about which Win32 and COM API are available to Metro style apps.

    As Nishant asks: what are you trying to do with window messages? There may be a way to achieve that goal via a supported mechanism.

    --Rob

    • Proposed as answer by Jesse Jiang Tuesday, July 31, 2012 7:26 AM
    • Marked as answer by woody tk Wednesday, August 01, 2012 3:32 AM
    Monday, July 30, 2012 5:33 PM
    Owner