使用Visual Studio 6(VC++ 6.0)我使用的ActiveX日期選擇器控件,我未能顯示默認情況下展開(3006216)。另外我想送鍵盤消息(F4),以我的窗口中打開了控制,但是當我這樣做沒有任何反應......發送消息(F4)發送到窗口時失敗
// 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);
結果總是0 - 我能做些什麼來測試/驗證消息發送?
感謝acvance很多...
奧利
退房: 「你不能模擬鍵盤輸入與PostMessage的」(HTTP://blogs.msdn .com/b/oldnewthing/archive/2005/05/30/423202.aspx) – humbagumba 2010-06-14 11:26:03