none
[pinvoke] Get the type of a dialog from its handle RRS feed

  • Question

  • Hi,

    I can get the handle of a windows dialog, but I need know now what kind of dialog is.

    I looking for the way to can differentiate the type of dialog that is associatte with a handle.
     
    I can get the Window name ("Save As", etc...) but for example, in the case of MessageBox the title can vary. Then, I need get any clue that helps me to know which dialog is.

    Cheers.
    .: Valeriano Tórtola - MCPD:Windows Developer 2.0 :.: http://www.vtortola.net :.
    Friday, June 27, 2008 12:16 PM

Answers

  • There's only one kind of dialog in Windows, #32770.  You'd have to use EnumChildWindows to distinguish them.  Seems connected to the link I gave you.
    Hans Passant.
    • Marked as answer by Bruno Yu Tuesday, July 1, 2008 5:32 AM
    Saturday, June 28, 2008 12:58 AM
    Moderator

All replies

  • There's only one kind of dialog in Windows, #32770.  You'd have to use EnumChildWindows to distinguish them.  Seems connected to the link I gave you.
    Hans Passant.
    • Marked as answer by Bruno Yu Tuesday, July 1, 2008 5:32 AM
    Saturday, June 28, 2008 12:58 AM
    Moderator
  • Thanks nobugz.

    It's a nasty thing. The only way that I found for distinguish them is check which buttons are in the window.

    I hate the non-managed development xD
    .: Valeriano Tórtola - MCPD:Windows Developer 2.0 :.: http://www.vtortola.net :.
    Wednesday, July 2, 2008 12:44 PM