Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a dialog bar in my application.it show a tree control in it.i want to place this dialog bar at the right bottom of the main window.please help me
Thanks in advance
Posted

I believe you need to call EnableDocking for the control, and possibly the window in which the DialogBar object resides. While you're waiting for a better answer, Google is your friend.
 
Share this answer
 
Let m_wndControlBar is your Control Bar then, In OnCreateof your CFrameWnd add this lines after creating m_wndControlBar(May be at the end of the function).

m_wndControlBar.EnableDocking(CBRS_ALIGN_ANY);               //Enable ControlBar Docking
EnableDocking(CBRS_ALIGN_ANY);                               //Enable Docking in Main Frame
DockControlBar(&m_wndControlBar, AFX_IDW_DOCKBAR_BOTTOM);    //Call this function on any control bar to change the docking position of control bar.


Check MSDN for full info.
 
Share this answer
 
Comments
shamnu 15-Jul-11 11:10am    
thanks
but i already tried this method.actually my requirement is launch the dialogbar initially at docked state on the right bottom of the main window.
please help me
thanks
but i already tried this method.actually my requirement is launch the dialog initially at docked state on the right bottom of the main window.
please help me
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900