![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Thanks to Ken Slovak, my toolbar problem were resolved, Thanks him very much
again. But now i meet another problem: While use word as editor, i couldn't find encrypt and sign button at all. My purpose is to make my created button keep same state as encrypt or sign, when sign is pressed, my button is down, vice versa. So my thought is catch click event for the two button, while word is NOT editor, i can find the buttons and DispEventAdvise on them. Another solution i tried is, Enum all windows, to find the button's window handle. I use SPY++ get the handle for toolbar they docked. EnumChildWindow return error code "invalid handle". and i get the toolbar's parent handle is ok, and the result is What handle i get from toolbar's parent is the same i saw in SPY++, so i think the buttons may be drawed by code not real button. So any suggestions or tips or point out my errors? Thanks in advance. In a word, i want to keep my buttons' state as the same with outlook's encrypt or sign button.Thank you again. -- Message posted via http://www.officekb.com |
Ads |
#2
|
|||
|
|||
![]()
I have another question, following description is assume IsWordEditor ==
false: when inspector is actived(inspector active event), i can get outlook's encrypt and sign button state without error code, but it is not correct. Say i create a new message, change the state of button(push down or up), and save the message. then open again, in active event find button and getState always return omsButtonUp, what's going on? -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...ddins/200905/1 |
#3
|
|||
|
|||
![]()
I find a way to get the state of the two button, use
WindowFromAccessibleObject and AccessibleObjectFromWindow, the returned control(sign and encrypt button of outlook IsWordEditor == true) is a IAccessiblePtr. Then my purpose changed to monitor the click event of the buttons. I guess that Office::ICommandBarButtonEvents should be use for advise event. But when i call ICommandBarButtonEvents: ![]() return E_NOINTERFACE. Why? Office::_CommandBarButton is derived from IAccessible and can be advised, why my returned IAccessiblePtr couldn't be advised?? TIA. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...ddins/200905/1 |
#4
|
|||
|
|||
![]()
Could someone help?
-- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...ddins/200905/1 |
#5
|
|||
|
|||
![]()
I am sorry for my poor english, am i offend some people unwittingly? That's
not my real intention. Or just have no ideas on this question? This quesiton is already posted three days, but nobody reply it or just give me some tips. I am quite confused. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...ddins/200905/1 |
#6
|
|||
|
|||
![]()
If no one responds that means no one has the answer for you. Your posts did
not offend anyone that I'm aware of. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "ryotyankou via OfficeKB.com" u48591@uwe wrote in message news:95fe88c996d65@uwe... I am sorry for my poor english, am i offend some people unwittingly? That's not my real intention. Or just have no ideas on this question? This quesiton is already posted three days, but nobody reply it or just give me some tips. I am quite confused. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...ddins/200905/1 |
#7
|
|||
|
|||
![]()
OK, i got it, thank you Ken.
![]() Ken Slovak - [MVP - Outlook] wrote: If no one responds that means no one has the answer for you. Your posts did not offend anyone that I'm aware of. I am sorry for my poor english, am i offend some people unwittingly? That's not my real intention. Or just have no ideas on this question? This quesiton is already posted three days, but nobody reply it or just give me some tips. I am quite confused. -- Message posted via http://www.officekb.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Disable sign and encrypt buttons | [email protected] | Add-ins for Outlook | 0 | June 20th 07 08:18 PM |
"Could not sign or encrypt" message in Outlook 2002 | Steve Paulsson | Outlook - General Queries | 3 | February 20th 07 01:13 PM |
Sign, encrypt and decrypt in a Citrix session | David H. Lipman | Outlook - General Queries | 0 | August 25th 06 12:46 AM |
Sign and Encrypt Emails on Custom Form | [email protected] | Outlook - Using Forms | 0 | June 26th 06 04:48 PM |
Use 3rd Party Editor in Outlook not Word or Built in Editor | Charles | Outlook - Installation | 1 | March 28th 06 03:32 PM |