CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2003
    Location
    .NET2.0 / VS2005 Developer
    Posts
    7,104

    help decoding this Spy++ trace?

    just out of curiousity.. i spied on dreamweaver while i clicked the save all menu item. to be sure of which was which, i wagged the mouse between Revert and Save All several time.. this can be seen at the top of the trace. then i clicked save all.. now is wher ei have a couple of questions:

    we see a WM_MENUSELECT command issued.. what is this? what is it selecting? it all seems rather uninteresting until:

    WM_SYSCOMMAND ; should i be sending this?
    WM_COMMAND (no indentation.. are the ....... a call stack indication of some kind?) wNotifyCode 0 (sent from a menu) wID: 27956

    is 27956 anythinng to do with the menu entry?

    how about wID: 30249? that is on the same indentation level

    what are the P and R in the 3rd column

    - im basically after something concrete that i can try sending to the application, to make it save all (thanks to chay luna and cimperiali for the ctrl+S keybd event code.. it works great, im just now trying to avoid irritating the user as a result of having to pop the dreamweaver window to the front

    if i were to settle on one of these WM_COMMANDs with the relevant wID.. could i be guaranteed that the wID would not change?

    thanks in advance
    Attached Images Attached Images
    "it's a fax from your dog, Mr Dansworth. It looks like your cat" - Gary Larson...DW1: Data Walkthroughs 1.1...DW2: Data Walkthroughs 2.0...DDS: The DataSet Designer Surface...ANO: ADO.NET2 Orientation...DAN: Deeper ADO.NET...DNU...PQ

  2. #2
    Join Date
    Oct 2003
    Location
    .NET2.0 / VS2005 Developer
    Posts
    7,104
    ok, heres the word from microsoft:

    P= PostMessage was used
    S= SendMessage was used
    s= sendmessage was used, but security restrictions prevent all info from being returned
    R=return value froma sendmessage call

    because all S are dealt with immediately, they have an R right after. P are dealt with when the app feels like it, so the R cannot be gained reliably...


    and further to my investigations, it appears that wID 27956 is always sent when doing a saveall, so i might try posting that message to the queue
    "it's a fax from your dog, Mr Dansworth. It looks like your cat" - Gary Larson...DW1: Data Walkthroughs 1.1...DW2: Data Walkthroughs 2.0...DDS: The DataSet Designer Surface...ANO: ADO.NET2 Orientation...DAN: Deeper ADO.NET...DNU...PQ

  3. #3
    Join Date
    Oct 2003
    Location
    .NET2.0 / VS2005 Developer
    Posts
    7,104
    woohoo! i got it!

    and look at the groovy app i knocked together to do so! lol:

    (when i press the post button, dreamweaver shows a save-as dialog - for unsaved files! woot - i like this windows messaging lark!)
    Attached Images Attached Images
    "it's a fax from your dog, Mr Dansworth. It looks like your cat" - Gary Larson...DW1: Data Walkthroughs 1.1...DW2: Data Walkthroughs 2.0...DDS: The DataSet Designer Surface...ANO: ADO.NET2 Orientation...DAN: Deeper ADO.NET...DNU...PQ

  4. #4
    Join Date
    Oct 2003
    Location
    .NET2.0 / VS2005 Developer
    Posts
    7,104
    has anyone got a full list of the constants? i had to scrat around the web for the few i pasted there, would be nice to put all of them in the list (all 849 of them )
    "it's a fax from your dog, Mr Dansworth. It looks like your cat" - Gary Larson...DW1: Data Walkthroughs 1.1...DW2: Data Walkthroughs 2.0...DDS: The DataSet Designer Surface...ANO: ADO.NET2 Orientation...DAN: Deeper ADO.NET...DNU...PQ

  5. #5
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    You should write an article...

    That is a big piece of job, cjard. You should really write something around it and submit it for publication here in Codeguru.
    I think it is most interesting, and not well known by the most of us...
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured