Click here to Skip to main content
15,905,322 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get a CWnd background color Pin
zhiying3-Sep-00 5:07
susszhiying3-Sep-00 5:07 
QuestionHow to get a CWnd background color Pin
zhiying3-Sep-00 5:07
susszhiying3-Sep-00 5:07 
QuestionWhat's a debug assertion ??? Pin
P0lO3-Sep-00 4:47
P0lO3-Sep-00 4:47 
AnswerRe: What's a debug assertion ??? Pin
Tim Deveaux3-Sep-00 7:43
Tim Deveaux3-Sep-00 7:43 
GeneralRe: What's a debug assertion ??? Pin
P0lO4-Sep-00 7:58
P0lO4-Sep-00 7:58 
GeneralRe: What's a debug assertion ??? Pin
Member 12089654-Sep-00 10:34
Member 12089654-Sep-00 10:34 
GeneralCDialogBar in CView Pin
Erik3-Sep-00 0:06
Erik3-Sep-00 0:06 
GeneralRe: CDialogBar in CView Pin
jschacker5-Sep-00 4:56
jschacker5-Sep-00 4:56 
You want to add the toolbar (or dialog bar) to the frame insted of the view. You can catch the button messages in the doc, view, or frame. The code below will add a toolbar to the child frame:

int CFrameClass::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
return -1;

//Create the toolbar.
{
EnableDocking(CBRS_ALIGN_ANY);

if(!m_wndToolBar.Create(this, WS_CHILD | WS_VISIBLE | CBRS_TOP, IDR_TOOLBAR_DEFECTVIEW) ||
!m_wndToolBar.LoadToolBar(IDR_TOOLBAR_DEFECTVIEW))
{
TRACE0("Failed to create toolbar\n");
}
else
{
// TODO: Remove this if you don't want tool tips or a resizeable toolbar
m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() |
CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);

// TODO: Delete these lines if you don't want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar, AFX_IDW_DOCKBAR_RIGHT);

}
return 0;
}

Good luck,
Jonathan Craig
GeneralRe: CDialogBar in CView Pin
Erik5-Sep-00 6:07
Erik5-Sep-00 6:07 
GeneralRe: CDialogBar in CView Pin
jschacker5-Sep-00 7:07
jschacker5-Sep-00 7:07 
GeneralLoadImage not loading animated cursor from resources when statically linking to MFC Pin
Paolo Messina2-Sep-00 23:48
professionalPaolo Messina2-Sep-00 23:48 
GeneralRe: LoadImage not loading animated cursor from resources when statically linking to MFC Pin
Michael Dunn3-Sep-00 8:28
sitebuilderMichael Dunn3-Sep-00 8:28 
GeneralRe: LoadImage not loading animated cursor from ... Pin
Paolo Messina3-Sep-00 21:34
professionalPaolo Messina3-Sep-00 21:34 
GeneralRe: Display raw data images Pin
Feng Yuan4-Sep-00 19:30
Feng Yuan4-Sep-00 19:30 
GeneralRe: LoadImage, LoadCursor *BUG* Pin
Paolo Messina4-Sep-00 0:12
professionalPaolo Messina4-Sep-00 0:12 
GeneralI'm near to become crazy... Pin
Paolo Messina4-Sep-00 7:41
professionalPaolo Messina4-Sep-00 7:41 
GeneralProblem while using windows hook and open file handle Pin
Chris Utz2-Sep-00 6:02
sussChris Utz2-Sep-00 6:02 
QuestionMDI app without MFC? Pin
B2-Sep-00 3:52
B2-Sep-00 3:52 
AnswerRe: MDI app without MFC? Pin
jschacker5-Sep-00 5:17
jschacker5-Sep-00 5:17 
AnswerRe: MDI app without MFC? Pin
Sam Hobbs7-Sep-00 18:49
Sam Hobbs7-Sep-00 18:49 
AnswerRe: MDI app without MFC? Pin
Scott Leonard8-Sep-00 5:00
Scott Leonard8-Sep-00 5:00 
QuestionFunction for Converting a CString/char* to UTF-8? Pin
Uwe Keim1-Sep-00 9:56
sitebuilderUwe Keim1-Sep-00 9:56 
AnswerRe: Function for Converting a CString/char* to UTF-8? Pin
Michael Dunn1-Sep-00 20:10
sitebuilderMichael Dunn1-Sep-00 20:10 
GeneralRe: Function for Converting a CString/char* to UTF-8? Pin
Uwe Keim1-Sep-00 23:32
sitebuilderUwe Keim1-Sep-00 23:32 
GeneralSolution FOUND: Function for Converting a CString/char* to UTF-8? Pin
Uwe Keim2-Sep-00 1:24
sitebuilderUwe Keim2-Sep-00 1:24 

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.