home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / programm / 6464 < prev    next >
Encoding:
Text File  |  1992-11-16  |  1.8 KB  |  39 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!gatech!concert!rock!taco!garfield.catt.ncsu.edu!harris
  3. From: harris@garfield.catt.ncsu.edu (Michael Harris)
  4. Subject: Re: WinFileDlg Operation
  5. Message-ID: <harris.721921206@garfield.catt.ncsu.edu>
  6. Sender: news@ncsu.edu (USENET News System)
  7. Organization: North Carolina State University
  8. References: <74746@hydra.gatech.EDU>
  9. Date: Mon, 16 Nov 1992 13:40:06 GMT
  10. Lines: 27
  11.  
  12. gb8@prism.gatech.EDU (BEEBE,GARY E) writes:
  13.  
  14.  
  15. >The FILEDLG member assignment that causes the error is
  16. >
  17. >         Dlgdat.pfnDlgProc=NULL;
  18.  
  19. >where FILEDLG Dlgdat; was previously declared. This assignemnt was recommended
  20. >in the RED BOOK's (although I have my reservations as to its neccesity).
  21.  
  22. Double-check the header file (I think it is PMCTLS.H) to be sure that the name
  23. is correct as you typed it.  Sometimes there are typos in the documentation.
  24.  
  25. >The question is: If you declare the pointer to the dialog procedure
  26. >to be NULL, how does the WinFileDlg call know where to process the default
  27. >dialog controls? Can someone recommend a validated source of accurate information describing the use of the WinFileDlg function?
  28.  
  29. This is NOT the real dialog proc.  The dialog proc pointed to by that parameter
  30. is a SUBCLASS PROC.  Basically, if you put a dialog proc of your own there,
  31. the standard File dialog will be created and then the system will immediately
  32. call WinSubclassWindow() with your proc and the file dialog as window.  It is
  33. your responsibility in your subclass proc to call WinDefFileDlgProc() or
  34. whatever the default proc is called.
  35. ______________________________________________________________________________
  36.      Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
  37.  System Administrator, Computer & Technologies Theme Program, NC State Univ.
  38. (My opinions are my own and do not represent those of NCSU or IBM Corporation)
  39.