shell32: Don't use the instance of the owner window for the autocomplete listbox.
This commit is contained in:
parent
82016c19ef
commit
1346740a57
|
@ -56,6 +56,7 @@
|
||||||
#include "shlobj.h"
|
#include "shlobj.h"
|
||||||
#include "shldisp.h"
|
#include "shldisp.h"
|
||||||
#include "debughlp.h"
|
#include "debughlp.h"
|
||||||
|
#include "shell32_main.h"
|
||||||
|
|
||||||
#include "wine/unicode.h"
|
#include "wine/unicode.h"
|
||||||
|
|
||||||
|
@ -106,8 +107,7 @@ static void create_listbox(IAutoCompleteImpl *This)
|
||||||
This->hwndListBox = CreateWindowExW(0, WC_LISTBOXW, NULL,
|
This->hwndListBox = CreateWindowExW(0, WC_LISTBOXW, NULL,
|
||||||
WS_BORDER | WS_CHILD | WS_VSCROLL | LBS_HASSTRINGS | LBS_NOTIFY | LBS_NOINTEGRALHEIGHT,
|
WS_BORDER | WS_CHILD | WS_VSCROLL | LBS_HASSTRINGS | LBS_NOTIFY | LBS_NOINTEGRALHEIGHT,
|
||||||
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
||||||
hwndParent, NULL,
|
hwndParent, NULL, shell32_hInstance, NULL );
|
||||||
(HINSTANCE)GetWindowLongPtrW( hwndParent, GWLP_HINSTANCE ), NULL);
|
|
||||||
|
|
||||||
if (This->hwndListBox) {
|
if (This->hwndListBox) {
|
||||||
This->wpOrigLBoxProc = (WNDPROC) SetWindowLongPtrW( This->hwndListBox, GWLP_WNDPROC, (LONG_PTR) ACLBoxSubclassProc);
|
This->wpOrigLBoxProc = (WNDPROC) SetWindowLongPtrW( This->hwndListBox, GWLP_WNDPROC, (LONG_PTR) ACLBoxSubclassProc);
|
||||||
|
|
Loading…
Reference in New Issue