View Single Post
  #2  
Old May 1st 07, 03:23 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2003 - Subclassing Appointment Form

I wouldn't do that. It's a great way to one-off your form.

I'd either add a control to open a separate form to show the 2 needed fields
to the menus of the Outlook item or I'd proxy the original Outlook form by
handling NewInspector and not displaying the Outlook form and displaying an
alternate form that has all the UI you want.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"newToOutlookProgramming"
wrote in message
...
This question is for Outlook 2003 specifically.

I have a requirement to extend native Appointment form and add couple of
fields on it. It is not possible using design custom form.

Choices I have for above requirement is :
(1) Design tab P-2 using custom form, hide original appoinment tab and
ship
this custom oft plus bunch of activex controls to achieve to near-same
usability as native form
(2) Add 2 fields in native outlook form by subclassing it

Second option seems better because it is better usability-wise,
maintenance-wise, deployment-wise, keeping-users-customizations etc.


Question:
-----------
Did you come across details of implementing subclassing.

Basic logic involves Getting hwnd from an appointment inspector and
Replacing the window procedure with your own code ( SetWindowLong ).

I am looking for details/codesnippet of implementing this subclassing.

Appreciate all pointers / code snippets / links.


Ads