home *** CD-ROM | disk | FTP | other *** search
/ Windoware / WINDOWARE_1_6.iso / source / winclass / readme < prev    next >
Text File  |  1991-03-19  |  2KB  |  50 lines

  1. Well, where to start...
  2. I put together a couple of classes for windows development and here they are.
  3.  
  4. The decision to begin the task of building a class library for windows came
  5. after trying to use the classes included in Borland's first "Language Express".
  6. I understand how they work and respect the way in which they were implemented,
  7. but they seem very complex for a new windows developer. I hope the classes
  8. I have built are a little easier to use.
  9.  
  10. What's included:
  11.     Test.h    // Defines the dialog class for this app.
  12.     Testm.h   // Defines menu selections
  13.     Test.cpp  // Main program
  14.     Test.res  // The menu, icon, and dialog
  15.     Test.def  // Keeps the linker happy
  16.  
  17.     Winbase.h  // Base window class and base registration class
  18.     Winstd.h   // A derived class from Window and WinRegClass
  19.     Dlgbase.h  // Base dialog class
  20.     readme     // This piece of great literature
  21.  
  22. To build the demonstration type:
  23. C:\> bcc -WS test
  24. C:\> rc test.res test.exe
  25.  
  26. OK then, how does all this work?
  27.     Winbase includes two classes, WindowRegClass and Windows these are
  28. used to build derived classes like StdRegClass and StdWin in Winstd.h and
  29. to build a non "standard window". To build a non-standard window use the 
  30. base classes to define a window or derive a class from them that defines 
  31. your window. 
  32. To build a standard type window as I've defined it use the StdWin class
  33. as in Test.cpp. In all the windows related classes you must
  34. define your procedure outside of the class and send the name to
  35. WindowRegClass.
  36.     The dialog class, however, is different. Instead of sending it the name
  37. of your function you MUST build a derived class from it and define the
  38. dialogs procedure as a member function (See Test.h for an example).
  39.  
  40. This I'll admit is not a complete class system nor was it intended to be.
  41. But, it should get things started if your new to windows programming.
  42.  
  43. Please feel free to add to this and send it back to compuserve.
  44. Any coments are welcome, I can be reached on compuserve but I
  45. have no idea how...
  46. Davin S. Hills
  47. 247 56st
  48. Des Moines Iowa, 50312
  49. Also feel free to distribute it freely.
  50.