Link to home
Start Free TrialLog in
Avatar of plamtod
plamtod

asked on

splitter and toolbar

Hi,
I have SDI and splitter. One pane is from class CTabView: public CControlView.
I could split this view verticaly and at bottom part made from CFormFiew put combo or buttons and make non-sized but ...
Is it possible to make view not to cover all pane and to snap toolbar
I try GetPane(), GetParentFrame() to access frame of pane and add toolbar but don't work?
Avatar of migel
migel

Hi!
I think that you need write new window that will hold your view and toolbar as childs and create this new window during split creatoin.
Can you place the toolbar on your view ? It won't be docked, and you'll have to handle its positioning yourself, but it will be there.
Avatar of plamtod

ASKER

I try to create and load toolbar for my TabView class but it not appear
Where did you place it ?
Where in the code did you handle the toolbar positioning ?
Avatar of plamtod

ASKER

I saw DLGCBR32 to put toolbar in dlg and use part of it.When size window there is a position where i see toolbar but it is not moving since sizing but in the begining it is not appear. My code is in TabView derived class used for one of the panes of splitter.
I try to use  CFrameWnd derived class in CreateView() of splitter for the same pane and create toolbar in this CMyFrame but toolbar not appear again.
ASKER CERTIFIED SOLUTION
Avatar of gurly
gurly

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of plamtod

ASKER

O.K.
I SUCCEED! But is needed BringWindowToTop and ShowWindow
In frame wnd maybe frame call this functions.
You could say that this is another question but some boring flickering appear after added this code in OnSize(when sizing). Any idea to work around it?
I don't know.
In my application the two calls were necessary. I think it has to do with your windows z-order.
Try without one of them. (I think it should also work without ShowWindow).
Avatar of plamtod

ASKER

O.K.
I SUCCEED! But is needed BringWindowToTop and ShowWindow
In frame wnd maybe frame call this functions.
You could say that this is another question but some boring flickering appear after added this code in OnSize(when sizing). Any idea to work around it?
Avatar of plamtod

ASKER

OK
Maybe you can check if the window is visible and top-most before you call these functions (use GetWindowPlacement).