Hiding and showing Panels in Status Bars

  • Thread starter Thread starter Jonathan Dixon
  • Start date Start date
J

Jonathan Dixon

Can someone tell me how i can show and then hide a panel on a status bar.

Is there a way. If not how can i add then remove and icon from a panel to
give the same effect

Any code samples would be useful

Regards

Jonathan Dixon
 
Johnathan,

In order to do this, you will have to override the DrawItem event on the
StatusBar panel in order to show another control. You will have to custom
paint the panels (which sucks, I know) based on the control you want to
show. My guess is that you could nest controls in there, but I think it
would require a little work on your part. You would have to make your
control a child of the status bar, and then have a status bar panel type
that would have a reference to the control. When the status bar is created,
you would have to make sure to create the controls on the status bar panel
as well, and then set the parent window handle, etc, etc.

Hope this helps.
 
Back
Top