Outlook 2007 and GetDlgItem()

S

Sumesh

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
 
K

Ken Slovak - [MVP - Outlook]

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()?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top