It's possible that the controls aren't initialized at the time you call getdlgitem(). Are you sure the control id's are identical and that the dialog window and all controls are initialized at the time you're calling getdlgitem()?
-- 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
"Sumesh" <Sumesh[ at ]discussions.microsoft.com> wrote in message news:43114E00-BE37-464F-A8E8-E697333B6AF9[ at ]microsoft.com...
[Quoted Text] > Hi All, > > I am developing an outlook add-in, which on certain preconditions will > display an image on the message window. I create a child window of the > message window and place the image on the child window. The location of > the > child window/image is manipulated using the location of from window, from > text, to window , to text etc... present in the message window. I get the > controls present in the window using their control id and getdlgitem() > functions. Now, the problem is that this works perfectly in outlook 2003 > and > previous versions, but for some reason in outlook 2007 this doesn't work > properly in spite of having the same control id's.I have been stuck up on > this for quite sometime.Any help in this issue is highly appreciated. > > Regards > Sumesh >
|