home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 November / PCONLINE_11_99.ISO / filesbbs / OS2 / ACDCR032.ZIP / source / audiooverriddenwpclsmethods.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-17  |  1.2 KB  |  43 lines

  1. #include "audiofolder.hh"
  2. #include "audiofolderhelp.h"
  3.  
  4. HMODULE queryModuleHandle(void);
  5.  
  6. /* Overriden function which returns our class name */
  7. PSZ M_CWAudioFolder::wpclsQueryTitle()
  8. {
  9.   return "Audio-CD-Creator";
  10. }
  11.  
  12. /* Overriden function which returns the custom icon */
  13. ULONG M_CWAudioFolder::wpclsQueryIconData(PICONINFO pIconInfo)
  14. {
  15.   if (pIconInfo)   {
  16.     pIconInfo->fFormat = ICON_RESOURCE;
  17.     /* The function queryModuleHandle() returns the module handle
  18.        of the DLL the class resides in. The resource compiler put
  19.        the icon in the DLL after compiling the class */ 
  20.     pIconInfo->hmod    = queryModuleHandle();
  21.     pIconInfo->resid   = ID_ICONAUDIOFOLDER;
  22.   } /* endif */
  23.   return ( sizeof(ICONINFO) );
  24. }
  25.  
  26.  
  27. ULONG M_CWAudioFolder::wpclsQueryStyle()
  28. {
  29.   /* CWProgFolder returns *_NEVERTEMPLATE but we want a template */
  30.   return M_WPFolder::wpclsQueryStyle();
  31. }
  32.  
  33. BOOL M_CWAudioFolder::wpclsQueryDefaultHelp(PULONG HelpPanelId,PSZ HelpLibrary)
  34. {
  35.     if(HelpLibrary)
  36.       /* The name of the library is defined in audiofolderhelp.h */
  37.         strcpy(HelpLibrary,AFHELPLIBRARY);
  38.     if(HelpPanelId)
  39.         *HelpPanelId= IDHLP_MAIN;
  40.     
  41.     return TRUE;
  42. }
  43.