A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2003 plug-in Rich Text Box not receiving certain keystrokes



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 11th 09, 08:18 PM
Michael Fox Michael Fox is offline
Junior Member
 
First recorded activity at Outlookbanter: Sep 2009
Posts: 2
Default Outlook 2003 plug-in Rich Text Box not receiving certain keystrokes

Hi, I've developed an Outlook 2003 plug-in that attaches itself to a message compose window. It's a VSTO plug-in written in C# on .Net 3.0 using VS 2008.

Visually, the plug-in adds an extra rich text box and a few other controls(mostly text formatting for the Rich Text Box) to the bottom of the Outlook compose window.

The issue that I am having is that certain keystrokes are being "hijacked" from from the Rich Text box (which has focus) and being responded to by the main compose text area. I have isolated the following details:

1. Text entry occurs normally.

2. Backspace, Delete, left and right arrow keys (and possibly others) are "hijacked" and cause the appropriate effect in the MAIN compose area. Focus remains on my Rich Text control.

3. Spy++ reports that the Rich Text Box receives a WM_KEYDOWN and a WM_KEYUP event, but the event handler for the Rich Text Box only shows a WM_KEYUP.

4. If another text entry area on the main compose window is selected before selecting my Rich Text Box, then my rich text Box functions normally (and incidentally, receives a WM_CHAR event when Backspace is pressed, in addition to the WM_KEYDOWN and WM_KEYUP)

5. This ONLY occurs when the composer is in HTML compose mode, and does not occur when the composer is set to compose either Rich Text or Plain text.

6. The Main compose text area is NOT receiving the WM_CHAR, WM_KEYUP or WM_KEYDOWN events even though it is apparently responding to them.

I was able to extend the Compose Window's WndProc, but was not able to intercept any messages at that level that were relevant to the problem I was having.

The behavior I have seen suggests that this is a bug in the InProc HTML composer, which apparently is some IE provided control. Any help resolving this would be very much appreciated.
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003: How to read emails in HTML, Rich Text or Plain Text? Spin[_2_] Outlook - General Queries 2 December 24th 08 05:00 AM
Temporarily reply to a message in Plain Text and not in Rich Text Singapore Web Design Outlook Express 3 April 1st 08 05:07 PM
rich text and attachment issues in Outlook 2003 feigenluis Outlook - General Queries 1 January 16th 07 07:34 PM
Outlook 2000 reading Outlook 2003 HTML and rich text emails in Chinese neffit Outlook - General Queries 0 September 28th 06 01:33 PM
problem with rich text (HTML)/plain text Jam Sr Outlook Express 2 July 8th 06 12:50 AM


All times are GMT +1. The time now is 08:43 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.