From: Jacek S. <arn...@gm...> - 2007-11-26 21:34:50
|
Hm, maybe winutil makes sense in this case since this is only needed if IsDialogMessage is called and it's dc++ that decides to call isdialogmessage... /J poy wrote: > 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 |