Encrypt and sign button while word is editor for outlook?

Status
Not open for further replies.
R

ryotyankou

Thanks to , 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.

 
R

ryotyankou

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?


 
R

ryotyankou

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::DispEventAdvise,

return E_NOINTERFACE. Why?

Office::_CommandBarButton is derived from IAccessible and can be advised, why

my returned IAccessiblePtr couldn't be advised?? TIA.


 
R

ryotyankou

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.


 
K

Ken Slovak - [MVP - Outlook]

If no one responds that means no one has the answer for you. Your posts did

not offend anyone that I'm aware of.

"ryotyankou " <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.

> >
>
>
 
R

ryotyankou

OK, i got it, thank you Ken. :)
- 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.


 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
R State of encrypt and sign button for a saved mail?(draft) Outlook VBA and Custom Forms 3
R About state of encrypt and sign button for outlook? Outlook VBA and Custom Forms 7
Dr. Demento Programmatically encrypt email (2010) Using Outlook 10
U unable to encrypt email Using Outlook 9
M How create a Rule to filter sender's email with more that one @ sign Using Outlook 1
D.Moore VB script to Digitaly Sign newly created outlook message Outlook VBA and Custom Forms 2
Fozzie Bear Office 365 Sign Up Using Outlook 1
A Creating a sign up form in Outlook 2010 Using Outlook 1
B Outlook 2003 can't sign in to my Hotmail account Using Outlook.com accounts in Outlook 1
M Can't Sign in to Outlook Using Outlook.com accounts in Outlook 4
P Digitally Sign More than one Email address Outlook Wishlist 0
D Outlook 2013 Macros only run in VB editor, not in drop down or button Outlook VBA and Custom Forms 10
N contact list seen in Contact folder but knot in Address book or when 'TO' button is clicked in new email Using Outlook 0
witzker HowTo start a macro with an Button in OL contact form Outlook VBA and Custom Forms 12
R Follow up button doesn't working neither the reminders in BCM BCM (Business Contact Manager) 0
Eike Move mails via macro triggered by the click of a button? Outlook VBA and Custom Forms 0
K Disabling import/export button to restrict PST creation Using Outlook 3
N Which Button Was Clicked on the Ribbonbar Menu Outlook VBA and Custom Forms 2
E Can't accept or decline task (no button appears) Using Outlook 2
M VbScript for Command Button on Contacts Custom Form Using Outlook 1
Q Prompt button to auto turn on Out of Office Outlook VBA and Custom Forms 3
C iCloud Setting missing Outlook tab and Outlook missing the iCloud refresh button Using Outlook 4
witzker Outlook 2010 Insert Date & Time at the button of an OL contactform in red Using Outlook 2
S How to set up button in ribbon for individual Quick Steps Using Outlook 1
C Custom Outlook Form - Populate Information from Radio Button / Check Box Using Outlook 0
J Command Button to stamp a date and time in a textbox in Outlook 2016 Outlook VBA and Custom Forms 3
A ScanPST finding errors but no Repair button Using Outlook 2
N Creating a button or link to a form in the Organizational Forms Library Outlook VBA and Custom Forms 3
J Execute Add-In Button from VBA Outlook 2016 Outlook VBA and Custom Forms 1
D Command Button code will not execute. Any suggestions Please. Outlook VBA and Custom Forms 2
S Reminder Dialog Open Button Using Outlook 2
Wayne Dardis Calling Ribbon Button in Outlook 2016 Outlook VBA and Custom Forms 6
Tanja Östrand Outlook 2016 - Create Macro button to add text in Subject Outlook VBA and Custom Forms 1
R Categorize Button in Quick Access Toolbar Disappears on New Email Using Outlook 1
S Problem running Command button code Outlook VBA and Custom Forms 2
E Button to change subject Outlook VBA and Custom Forms 1
S Shortcut/button to a Calendar Group Using Outlook 0
soadfan Enable all rules from toolbar button? Outlook VBA and Custom Forms 3
I Creating meeting invite with disabled tentative button Outlook VBA and Custom Forms 5
Diane Poremsky Contacts are missing when you click the To button New Slipstick.com Articles 0
T Unable to 'Upload a file' using popup 'Browse' button Using Outlook 0
makinmyway ScanPST.exe Missing Repair Button Using Outlook 15
williamlambton Reinstate "Open" button on mail item right-click context menu. Outlook Wishlist 2
K Remove Manage APPS button for users Exchange Server Administration 1
J Send and Receive Button - only check default account? Using Outlook 1
A custom send button Outlook VBA and Custom Forms 3
P Possibility to create a calendar button "remaining week"??? Using Outlook 3
E Outlook 2007: Problem with "Move to Folder >" button on toolbar Using Outlook 6
E Button in body of email to approve/reject with original text Using Outlook 1
H Preventing the Send button from being clicked on an Outlook Form Outlook VBA and Custom Forms 1

Similar threads

Top