View previous topic :: View next topic |
Author |
Message |
ideage
Joined: 12 Jul 2006 Posts: 63 Location: china
|
Posted: Wed Jan 21, 2009 10:06 am Post subject: How to trigger ComboBox KeyDown Event? |
|
|
Thanks!
________
Yamaha WR426
Last edited by ideage on Wed Feb 02, 2011 5:10 pm; edited 1 time in total |
|
Back to top |
|
|
ideage
Joined: 12 Jul 2006 Posts: 63 Location: china
|
Posted: Thu Feb 05, 2009 9:23 pm Post subject: |
|
|
Ah,I got it!
use Application's MessageFilter.
Code: |
class ComboxKeyDownFilter:IMessageFilter
{
HWND m_EditHwnd;
this(ComboBox cbox){
m_EditHwnd=FindWindowExA(cbox.handle,null,"Edit",null);
}
bool preFilterMessage(inout Message m)
{
if(m.msg ==WM_KEYDOWN && m_EditHwnd==m.hWnd)
{
writefln("KewDown!");
return false;
}
return false;
}
}
|
________
Third-generation Ford Taurus history |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|