a floating toolbar in WTL

Posted by freefallr on Stack Overflow See other posts from Stack Overflow or by freefallr
Published on 2010-05-30T09:29:39Z Indexed on 2010/05/30 9:32 UTC
Read the original article Hit count: 488

Filed under:
|
|

I've created a multimedia app that uses DirectShow to display multiple media streams simultaneously.

The app is a WTL MDI application. For video windows, I use a CWindowImpl derived class - one per CChildFrame.

I'd like to add controls to the video windows (volume ctrls etc).

I'd initially thought about adding a slider (volume) control and a couple of buttons to a context menu - but later thought that this might not be the best approach.

I was looking at MS Word 2007 - which has a floating toolbar that allows you to change options on highlighted text.

I'd like to implement a similar floating toolbar for the video controls.

I googled around a bit and found an old post about floating toolbars in WTL. The response was - for a floating toolbar, create a popup window and make it's parent the main window.

I think that this sounds like a reasonable approach.

my questions:

  • Is this a good approach, or is there a more standard approach for a floating toolbar now in WTL?

  • Should I make the toolbar a child of the video window or the CChildFrame that contains the video window, in order to ensure that it always remains on top of the video?

  • How can I implement transparency in the floating toolbar, as in the floating toolbar in MS word?

© Stack Overflow or respective owner

Related posts about toolbar

Related posts about wtl