Article View: comp.os.os2.programmer
Article #2963Re: WinFileDlg Operation
From: Michael Harris
Date: Mon, 16 Nov 1992 13:40
Date: Mon, 16 Nov 1992 13:40
27 lines
1918 bytes
1918 bytes
gb8@prism.gatech.EDU (BEEBE,GARY E) writes:
>The FILEDLG member assignment that causes the error is
>
> Dlgdat.pfnDlgProc=NULL;
>where FILEDLG Dlgdat; was previously declared. This assignemnt was recommended
>in the RED BOOK's (although I have my reservations as to its neccesity).
Double-check the header file (I think it is PMCTLS.H) to be sure that the name
is correct as you typed it. Sometimes there are typos in the documentation.
>The question is: If you declare the pointer to the dialog procedure
>to be NULL, how does the WinFileDlg call know where to process the default
>dialog controls? Can someone recommend a validated source of accurate information describing the use of the WinFileDlg function?
This is NOT the real dialog proc. The dialog proc pointed to by that parameter
is a SUBCLASS PROC. Basically, if you put a dialog proc of your own there,
the standard File dialog will be created and then the system will immediately
call WinSubclassWindow() with your proc and the file dialog as window. It is
your responsibility in your subclass proc to call WinDefFileDlgProc() or
whatever the default proc is called.
______________________________________________________________________________
Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
System Administrator, Computer & Technologies Theme Program, NC State Univ.
(My opinions are my own and do not represent those of NCSU or IBM Corporation)
Technical Details
Message-ID:
<harris.721921206@garfield.catt.ncsu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!concert!rock!taco!garfield.catt.ncsu.edu!harrisReferences:
<74746@hydra.gatech.EDU>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!concert!rock!taco!garfield.catt.ncsu.edu!harris From: harris@garfield.catt.ncsu.edu (Michael Harris) Subject: Re: WinFileDlg Operation Message-ID: <harris.721921206@garfield.catt.ncsu.edu> Sender: news@ncsu.edu (USENET News System) Organization: North Carolina State University References: <74746@hydra.gatech.EDU> Date: Mon, 16 Nov 1992 13:40:06 GMT Lines: 27