Re: WinSetWindowPtr() for WinFileDlg ?
- From: Heiko Nitzsche <hn-expires-31-oct-06@xxxxxxxx>
- Date: Thu, 14 Sep 2006 17:04:57 +0200
None of this looks correct. As Cornelis noted, you don't subclass
a file dialog. Instead, you supply your "subclass" proc in the
'pfnDlgProc' member of the FILEDLG struct - i.e., the address of
GlobalFileDlgWindowProcedure(). Any messages that it doesn't
handle should be passed to WinDefFileDlgProc().
Yes, I know. In my initial post I left out an important thing.
I'm not using the file dialog directly but rather an already
subclassed file dialog, the GBM file dialog. It is already
using the provided pfnDlgProc and is in a separate DLL.
And as I tried to put my window procedure in, I found out
that the already released GBM file dialog versions don't
export their window procedure. I could fix this in a new
release but the code I'm writing should also run with
the old dialog. That's why this hacking around with
WinSubclassWindow() to get its window procedure.
.
- References:
- WinSetWindowPtr() for WinFileDlg ?
- From: Heiko Nitzsche
- Re: WinSetWindowPtr() for WinFileDlg ?
- From: Rich Walsh
- Re: WinSetWindowPtr() for WinFileDlg ?
- From: Heiko Nitzsche
- WinSetWindowPtr() for WinFileDlg ?
- Prev by Date: Re: WinSetWindowPtr() for WinFileDlg ?
- Next by Date: Re: Codepage ??
- Previous by thread: Re: WinSetWindowPtr() for WinFileDlg ?
- Next by thread: Re: WinSetWindowPtr() for WinFileDlg ?
- Index(es):
Relevant Pages
|