m_oeapi->ComposeMessage();
long newMsgWndId = m_oeapi->GetActiveMsgWndID();
Instead of getting the ID of the new window I get the ID of the
message window of the currently selected message. But if I add the
Sleep() method to my code:
m_oeapi->ComposeMessage();
Sleep(500);
long newMsgWndId = m_oeapi->GetActiveMsgWndID();
I get the new window ID (the one I am looking for).
This solution doesn't satisfy me.
Is there another way to get the ID of the message window opened by
ComposeMessage()?
Regards,
Ewa Jajszczyk