http://bugs.winehq.org/show_bug.cgi?id=26185
--- Comment #8 from Austin Lund austin.lund@gmail.com 2011-03-05 16:55:32 CST --- I've managed to get the binary and have looked into what is going on.
This program assigns a single function to the WndProc for most windows (?!?! is this a common design). That function then looks up the "right" WndProc from a hash table which stores the window handle and a pointer to an object responsible for the window and has the wndproc in the vtable.
From what I've seen, the click message _must_ be processed in the listbox
wndproc as the dialogproc assigned to the dialog only processes WM_COMMAND and WM_INITDIALOG messages (hardcoded into the dialogproc function).
What exactly the function for the listbox is doing I'm not sure as I cannot figure out which function is the one actually called.