Outlook 2007 and GetDlgItem()

  • Thread starter Thread starter Sumesh
  • Start date Start date
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
 
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()?
 
Back
Top