<<PATCH>> Added shell32.dll functions to browse for unix directory;

Shachar Shemesh wine-devel at shemesh.biz
Wed Dec 1 17:53:37 CST 2004


Robert van Herk wrote:

> So yes, I could put it all in a structure on the stack and then pass 
> it to the dlgproc, but it will only arrive there on WM_INITDIALOG. 
> However, I will also need the structure when the other messages come 
> in. So where do I save it then, if I cannot put it in a global var? Am 
> I missing something?
>
> Robert

One option is to store it inside the dialog itself. Use "SetWindowsLong" 
to store the pointer. Just make sure that you pass the right parameter 
on to WM_INITDIALOG, and that you deallocate the struct (if it's 
allocated dynamically from the heap) before the window is destroyed 
(WM_DESTROY is a good bet).

          Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/




More information about the wine-devel mailing list