How 2 make a good looking ToolBar without doc-view 
Author Message
 How 2 make a good looking ToolBar without doc-view

Hello !
I try to make a usual ToolBar
(just like the wizard does)
But without doc-view interface it has no border
and looks bad.
Only doc-view SDI (or MDI) makes it ok...
What is the reason ?

Look, this is all in vain :

int CMyWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
    if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
  return -1;

DWORD DWtemp = WS_CHILD | WS_VISIBLE | CBRS_LEFT | WS_BORDER;

 if (!StandartBar.Create(this,DWtemp,IDW_STD_BAR) ||
 !StandartBar.LoadToolBar(MAIN))
 {
  TRACE0("Failed to create toolbar\n");
  return -1;      // fail to create
 }

 StandartBar.SetBarStyle(StandartBar.GetBarStyle() |
 CBRS_TOOLTIPS     |
    CBRS_FLYBY        |
    CBRS_SIZE_DYNAMIC |
    CBRS_BORDER_BOTTOM|    // with
    CBRS_BORDER_TOP   |         // or
    CBRS_BORDER_LEFT  |        // without
    CBRS_BORDER_RIGHT) ;     // it

 StandartBar.EnableDocking(CBRS_ALIGN_ANY);
 EnableDocking(CBRS_ALIGN_ANY);
 DockControlBar(&StandartBar);

 return 0;

Quote:
}

Thank you.


Fri, 01 Dec 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How 2 make good looking ToolBar without doc-view

2. toolbar/statusbar; MFC without doc/view

3. Doc/view without initial view

4. Getting 2nd Doc/View data from 1st Doc/View

5. Making my apps VC 4.2 toolbars look like in VC 5

6. Doc-view arch without a file

7. CListCtrl as child window of a SDI app without MFC Doc/View

8. printing graphics without standard doc/view problem

9. Print without the doc/view framework works with win2k but not win98

10. Close all views without closing the Doc

11. How to use CFormView without doc/view

12. With or without Doc/View support

 

 
Powered by phpBB® Forum Software