SendMessage (F4) fails when sending it to window
Posted
by Olli
on Stack Overflow
See other posts from Stack Overflow
or by Olli
Published on 2010-06-14T09:40:00Z
Indexed on
2010/06/14
9:42 UTC
Read the original article
Hit count: 277
c++
|sendmessage
Working with Visual Studio 6 (VC++ 6.0) I'm using an ActiveX datepicker control which I fail to show expanded by default (3006216). Alternatively I'm trying to send a keyboard message (F4) to my window to open up the control, but nothing happens when I do so...
// try 1: use the standard window handle
LRESULT result = ::SendMessage(m_hWnd,VK_F4, 0, 0);
// try 2: use just use the SendMessage
result = SendMessage(VK_F4);
result is always 0 - what can I do to test/verify the message sending?
Thanks in acvance a lot...
Olli
© Stack Overflow or respective owner