From: poy <po...@12...> - 2007-11-15 21:13:33
|
the "pressing enter in search wasn't working" issue was solved by adding the following in answer to WM_GETDLGCODE in SearchFrame: static HRESULT allKeys(WPARAM wParam, LPARAM) { if(wParam != VK_TAB) return DLGC_WANTMESSAGE; return 0; } now there are several other parts of DC++ where such a thing would be needed, eg in many list views, or the public hubs filter, pressing enter isn't working. so i was wondering wether i just copy-paste that everywhere i need it, or should it rather be somewhere in smartwin? or have the function in a place like WinUtil so that any class can have access to it, thanks to tr1::bind. :) poy |