Click to See Complete Forum and Search --> : help decoding this Spy++ trace?


cjard
November 20th, 2003, 11:04 AM
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

cjard
November 20th, 2003, 11:27 AM
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 :)

cjard
November 20th, 2003, 12:06 PM
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!)

cjard
November 20th, 2003, 12:08 PM
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 :) )

Cimperiali
November 20th, 2003, 12:59 PM
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...