Controls related question
-
This is a newbie question, but I would be grateful if someone could clear this concept for me. Suppose I have: 1. A class
cMainForm
that has a DirectSound object,SecBuffer
2. A control for this class,cControl
, that has a trackbar which controls the volume of the DirectSound buffer. How do I get the code in the cControl class to verify and recognize that the object has been created, and how do I use it? My app requires that the code be written in separate classes, because different controls will all access the sameSecBuffer
object. Thanks for your help. -
This is a newbie question, but I would be grateful if someone could clear this concept for me. Suppose I have: 1. A class
cMainForm
that has a DirectSound object,SecBuffer
2. A control for this class,cControl
, that has a trackbar which controls the volume of the DirectSound buffer. How do I get the code in the cControl class to verify and recognize that the object has been created, and how do I use it? My app requires that the code be written in separate classes, because different controls will all access the sameSecBuffer
object. Thanks for your help.Are cControl also on cMainForm. If so you only have to write the code to bind them together. If not, you will have to make public properties, methods and events on cMainForm that expose the features that you would like. If the cControl class only wants to detect if the object SecBuffer is created you can use a read-only property.