Click here to Skip to main content
15,921,774 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDLL Help. At the end of my tether! Pin
xsive29-Apr-04 22:59
xsive29-Apr-04 22:59 
GeneralRe: DLL Help. At the end of my tether! Pin
Mike Dimmick30-Apr-04 2:19
Mike Dimmick30-Apr-04 2:19 
GeneralSize of CRichEditCtrl Pin
GermanGeorge29-Apr-04 22:27
GermanGeorge29-Apr-04 22:27 
GeneralRe: Size of CRichEditCtrl Pin
David Crow30-Apr-04 3:40
David Crow30-Apr-04 3:40 
GeneralRe: Size of CRichEditCtrl Pin
GermanGeorge2-May-04 20:00
GermanGeorge2-May-04 20:00 
GeneralFile Association Pin
Monty229-Apr-04 22:19
Monty229-Apr-04 22:19 
GeneralRe: File Association Pin
Monty230-Apr-04 2:41
Monty230-Apr-04 2:41 
GeneralRe: File Association Pin
David Crow30-Apr-04 3:46
David Crow30-Apr-04 3:46 
GeneralRe: File Association Pin
PJ Arends30-Apr-04 4:19
professionalPJ Arends30-Apr-04 4:19 
GeneralRe: File Association Pin
Monty230-Apr-04 18:38
Monty230-Apr-04 18:38 
GeneralDetecting codecs without DirectShow. Pin
haust29-Apr-04 21:47
haust29-Apr-04 21:47 
GeneralRe: Detecting codecs without DirectShow. Pin
Anthony_Yio29-Apr-04 23:11
Anthony_Yio29-Apr-04 23:11 
GeneralRe: Detecting codecs without DirectShow. Pin
Mike Dimmick30-Apr-04 2:40
Mike Dimmick30-Apr-04 2:40 
GeneralFlood fill of all image objects simultaneously Pin
Kolich29-Apr-04 20:45
Kolich29-Apr-04 20:45 
GeneralRe: Flood fill of all image objects simultaneously Pin
John R. Shaw30-Apr-04 10:55
John R. Shaw30-Apr-04 10:55 
GeneralRe: Flood fill of all image objects simultaneously Pin
Kolich4-May-04 19:11
Kolich4-May-04 19:11 
GeneralRe: Flood fill of all image objects simultaneously Pin
John R. Shaw4-May-04 20:52
John R. Shaw4-May-04 20:52 
GeneralRe: Flood fill of all image objects simultaneously Pin
Kolich4-May-04 22:23
Kolich4-May-04 22:23 
GeneralRe: Flood fill of all image objects simultaneously Pin
John R. Shaw5-May-04 9:03
John R. Shaw5-May-04 9:03 
GeneralRe: Flood fill of all image objects simultaneously Pin
Kolich6-May-04 20:10
Kolich6-May-04 20:10 
GeneralRe: Flood fill of all image objects simultaneously Pin
John R. Shaw8-May-04 4:49
John R. Shaw8-May-04 4:49 
GeneralVK code for subtract Pin
Tyrus18229-Apr-04 20:24
Tyrus18229-Apr-04 20:24 
GeneralRe: VK code for subtract Pin
ohadp29-Apr-04 21:05
ohadp29-Apr-04 21:05 
GeneralThird party toolbar Pin
*Dreamz29-Apr-04 20:01
*Dreamz29-Apr-04 20:01 
GeneralRe: Third party toolbar Pin
nguyenvhn29-Apr-04 20:48
nguyenvhn29-Apr-04 20:48 
As my knowledge, you need 2 toolbars. One supplied by MFC framework, and the other supplied by yourself. If so, read bellow. If not, leave now.

In CMainFrame, create a CToolBar member variable, for example, it may be CToolBar m_tbNew;.
In CMainFrame::OnCreate, add the following code:
<br />
m_tbNew.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC, CRect(0,0,0,0), ID_NEW_TOOLBAR);<br />
m_tbNew.SetWindowText("Caption here");<br />
m_tbNew.LoadToolBar(IDR_NEW_TOOLBAR_RESOURCE);<br />
m_tbNew.EnableDocking(CBRS_ALIGN_ANY);<br />
DockControlBar(&m_tbNew);<br />


The second toolbar will show beside default toolbar.
Good luck.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.