home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
WINCLASS.ZIP
/
README
< prev
next >
Wrap
Text File
|
1991-03-19
|
2KB
|
50 lines
Well, where to start...
I put together a couple of classes for windows development and here they are.
The decision to begin the task of building a class library for windows came
after trying to use the classes included in Borland's first "Language Express".
I understand how they work and respect the way in which they were implemented,
but they seem very complex for a new windows developer. I hope the classes
I have built are a little easier to use.
What's included:
Test.h // Defines the dialog class for this app.
Testm.h // Defines menu selections
Test.cpp // Main program
Test.res // The menu, icon, and dialog
Test.def // Keeps the linker happy
Winbase.h // Base window class and base registration class
Winstd.h // A derived class from Window and WinRegClass
Dlgbase.h // Base dialog class
readme // This piece of great literature
To build the demonstration type:
C:\> bcc -WS test
C:\> rc test.res test.exe
OK then, how does all this work?
Winbase includes two classes, WindowRegClass and Windows these are
used to build derived classes like StdRegClass and StdWin in Winstd.h and
to build a non "standard window". To build a non-standard window use the
base classes to define a window or derive a class from them that defines
your window.
To build a standard type window as I've defined it use the StdWin class
as in Test.cpp. In all the windows related classes you must
define your procedure outside of the class and send the name to
WindowRegClass.
The dialog class, however, is different. Instead of sending it the name
of your function you MUST build a derived class from it and define the
dialogs procedure as a member function (See Test.h for an example).
This I'll admit is not a complete class system nor was it intended to be.
But, it should get things started if your new to windows programming.
Please feel free to add to this and send it back to compuserve.
Any coments are welcome, I can be reached on compuserve but I
have no idea how...
Davin S. Hills
247 56st
Des Moines Iowa, 50312
Also feel free to distribute it freely.