home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / common / msdev98 / template / atl / dialog.ctl < prev    next >
INI File  |  1998-06-16  |  877b  |  38 lines

  1. [!set(ComponentType, "11110000")]
  2. [!Dialog("Names98")]
  3.  
  4. [!strcpy(UpperShortName, ShortName)]
  5. [!toupper(UpperShortName)]
  6.  
  7. [!AddStringToSymbol(HeaderTemplate, GalleryPath, "dialog.h")]
  8. [!AddStringToSymbol(CPPTemplate, GalleryPath, "dialog.cpp")]
  9.  
  10. [!target(HeaderName)]
  11. [!include(HeaderTemplate)]
  12. [!target()]
  13.  
  14. [!target(CPPName)]
  15. [!include(CPPTemplate)]
  16. [!target()]
  17.  
  18. [!if!(stdafx.h)]
  19. [!set(stdafx.h, "stdafx.h")]
  20. [!endif]
  21. [!if!(stdafx.cpp)]
  22. [!set(stdafx.cpp, "stdafx.cpp")]
  23. [!endif]
  24. [!set(atlwin.h, "<atlwin.h>")]
  25. [!AddIncludeFile(stdafx.h, atlwin.h)]
  26.  
  27. [!AddFileToProject(CPPName)]
  28. [!AddFileToProject(HeaderName)]
  29.  
  30. [!AddSymbolToString(IDD_DIALOGID, "IDD_", UpperShortName)]
  31.  
  32. [!AddStringToSymbol(RCFile, GalleryPath, "dialog.rc")]
  33. [!AddResourceFromFile(RCFile, IDD_DIALOGID, "DIALOG")]
  34. [!if(VC)]
  35. [!Commit()]
  36. [!OpenDialog(IDD_DIALOGID)]
  37. [!endif]
  38.