Comprehend PluginHostDemo

I want to make a vst host based on PluginHost, currently I want to add a slider to control the volume of the output of PluginHost, where should I start?