Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtMiniDockWnd derived class Collapse All
Subject Author Date
Adam Keadey Sep 19, 2007 - 3:10 PM

I decided to post this issue alone

I want to detect the user click on a docking window. I have no problem doing this by using WM_LBUTTONDOWN in my CExtControlBar derived class.

When the window is floating the notifications do not get send through CExtCotnrolbar, but are sent through CExtMiniDockWnd. I’m attempting to derive a class from from CExtMiniDockWnd, but when the application starts it always creates a CExtMinDockWnd, not my derived class.

Within the static function FrameEnableDocking the m_pFloatingFrameClass is set to CExtMiniDockFrame. I don’t see anything that I can simply override to set the runtime class to my derived class.

Maybe There is altogether a simpler way to get a mouse click on the title bar whether floating or docked.

Suhai Gyorgy Sep 20, 2007 - 1:46 AM

Short answer: There’s an overridable method CExtControlBar::OnCreateFloatingFrame, check out default implementation and override it to create your own CExtMiniDockFrameWnd.

But what would you like to achieve with handling WM_LBUTTONDOWN message? Maybe there is an easier way to achieve it, which would be the same for both control bar states.

Adam Keadey Sep 20, 2007 - 8:41 AM


CExtControlBar::OnCreateFloatingFrame will handle when the control bar is undocked to become floating, but it does not handle a control bar that is floating on startup. Prof-uis sets the m_pFloatingFrameClass to CExtMiniDockFrame which is the class that will be used to create the floating control bar.

I’m going to have my control flash when there is something that I need the user to acknolledge on that control bar. When the user clicks on the title bar the flashing will stop.

I was attempting to use the WM_LBUTTONDOWN message to stop the flashing.