home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv7.zip / VACPP / IBMCPP / smarts / ICLUI / OPENFILE.CPP < prev    next >
Text File  |  1995-06-02  |  926b  |  31 lines

  1.  
  2. %PROLOG%
  3.  
  4. #include "openfile.hpp"
  5. #include "%FILE_NAME%.hpp"
  6.  
  7. /****************** AppOpenFileFn Implementation **********************/
  8.  
  9.  
  10. /***********************************************************/
  11. /* Constructor for the file open thread function class. It */
  12. /* takes a single AppWindow argument and simply stores a   */
  13. /* pointer to the AppWindow as private data.               */
  14. /***********************************************************/
  15. AppOpenFileFn :: AppOpenFileFn (AppWindow *window)
  16. {
  17.   appWindow = window;
  18. }
  19.  
  20.  
  21. /***********************************************************/
  22. /* Overriding run() method for the file open thread        */
  23. /* function class.  This function is called implicitly     */
  24. /* when a thread to open a file is dispatched.             */
  25. /***********************************************************/
  26. void AppOpenFileFn :: run()
  27. {
  28.   appWindow->openFile();
  29. }
  30.  
  31.