View Single Post
Old 05-02-2019, 10:37 PM   #7
pressplay
Human being with feelings
 
pressplay's Avatar
 
Join Date: Sep 2017
Location: Berlin
Posts: 47
Default

As stw said, store a pointer to the control as a plug-in class member. Then:

Code:
// in plug-in ctor:
mBitmapControl = new IBitmapControl(this, 20, 10, -1, &knob);
pGraphics->AttachControl(mBitmapControl);
And later
Code:
mBitmapControl->Hide(true);
pressplay is offline   Reply With Quote