Click here to Skip to main content
15,916,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can't link to a library in Visual studio 2005 Pin
Cedric Moonen18-Sep-06 21:07
Cedric Moonen18-Sep-06 21:07 
GeneralRe: Can't link to a library in Visual studio 2005 Pin
BarryOg18-Sep-06 22:05
BarryOg18-Sep-06 22:05 
QuestionHow to Output A Character Multiple Times - New To C++ Pin
Mark_Murphy18-Sep-06 11:18
Mark_Murphy18-Sep-06 11:18 
AnswerRe: How to Output A Character Multiple Times - New To C++ Pin
Christian Graus18-Sep-06 12:44
protectorChristian Graus18-Sep-06 12:44 
AnswerRe: How to Output A Character Multiple Times - New To C++ Pin
George L. Jackson18-Sep-06 13:30
George L. Jackson18-Sep-06 13:30 
GeneralRe: How to Output A Character Multiple Times - New To C++ Pin
Mark_Murphy18-Sep-06 13:41
Mark_Murphy18-Sep-06 13:41 
GeneralRe: How to Output A Character Multiple Times - New To C++ Pin
George L. Jackson18-Sep-06 14:45
George L. Jackson18-Sep-06 14:45 
QuestionCToolBar winth CFormView Pin
serferreiras18-Sep-06 10:40
serferreiras18-Sep-06 10:40 
Help me, I need to create a CFormView class with CToolBar, but when update my CFormView, the toolbar disappears. I'm use a MainFrame with CSplittstWnd, so the my program use many CFormView as controls. Inside de CFormView, I call the CtoolBar in OnInitialUpdate;

What is the error?

part of source code:

void CForm2::OnInitialUpdate()
{
CFormView::OnInitialUpdate();

// TODO: Add your specialized code here and/or call the base class
if (!m_toolBar2.Create( this ) ||
!m_toolBar2.LoadToolBar(IDR_TOOLBAR2))
{
TRACE0("Failed to create toolbar2\n");
return; // fail to create
}

m_toolBar2.SetBarStyle(CBRS_ALIGN_ANY | CBRS_TOOLTIPS | CBRS_FLYBY);

WINDOWPLACEMENT wndPlmnt2;

m_ctrlTB1Holder2.GetWindowPlacement(&wndPlmnt2);
m_toolBar2.GetToolBarCtrl().SetWindowPlacement(&wndPlmnt2);

m_toolTip2.Create(this, TTS_ALWAYSTIP);

CRect rect;

m_toolBar2.GetToolBarCtrl().GetItemRect(0, rect);
m_toolTip2.AddTool(&m_toolBar2, ID_TB2_ONE, rect, ID_TB2_ONE);
m_toolBar2.GetToolBarCtrl().GetItemRect(1, rect);
m_toolTip2.AddTool(&m_toolBar2, ID_TB2_TWO, rect, ID_TB2_TWO);

m_toolBar2.GetToolBarCtrl().SetToolTips(&m_toolTip2);

GetParentFrame()->RecalcLayout();
ResizeParentToFit();

}

//////////////
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{

(...)

if (!m_wndSplitter3.CreateView(0,0,RUNTIME_CLASS(CForm2),CSize(cr.Width()-100,cr.Height()-100),pContext))
{
TRACE(_T("failed to create view in third pane"));
return FALSE;
}
(...)

Later, I do another call the other "CForm1", but I return to "CForm2", your toolbar disappers, undertand?

QuestionUNICODE to ASCII Conversion Pin
AlekseyUS18-Sep-06 10:33
AlekseyUS18-Sep-06 10:33 
QuestionRe: UNICODE to ASCII Conversion Pin
David Crow18-Sep-06 10:35
David Crow18-Sep-06 10:35 
AnswerRe: UNICODE to ASCII Conversion Pin
AlekseyUS18-Sep-06 10:40
AlekseyUS18-Sep-06 10:40 
AnswerRe: UNICODE to ASCII Conversion Pin
Shog918-Sep-06 11:11
sitebuilderShog918-Sep-06 11:11 
GeneralRe: UNICODE to ASCII Conversion Pin
AlekseyUS18-Sep-06 11:43
AlekseyUS18-Sep-06 11:43 
AnswerRe: UNICODE to ASCII Conversion Pin
Amar Sutar18-Sep-06 18:05
Amar Sutar18-Sep-06 18:05 
AnswerRe: UNICODE to ASCII Conversion Pin
Hamid_RT18-Sep-06 19:40
Hamid_RT18-Sep-06 19:40 
QuestionQuestion? Pin
#hackC++18-Sep-06 10:03
#hackC++18-Sep-06 10:03 
AnswerRe: Question? Pin
Zac Howland18-Sep-06 10:16
Zac Howland18-Sep-06 10:16 
QuestionHow do I use a string as a parameter in a Win32 api function? Pin
BarryOg18-Sep-06 10:02
BarryOg18-Sep-06 10:02 
AnswerRe: How do I use a string as a parameter in a Win32 api function? Pin
Zac Howland18-Sep-06 10:19
Zac Howland18-Sep-06 10:19 
GeneralRe: How do I use a string as a parameter in a Win32 api function? Pin
BarryOg18-Sep-06 10:49
BarryOg18-Sep-06 10:49 
GeneralRe: How do I use a string as a parameter in a Win32 api function? Pin
Zac Howland18-Sep-06 10:52
Zac Howland18-Sep-06 10:52 
GeneralRe: How do I use a string as a parameter in a Win32 api function? Pin
BarryOg18-Sep-06 11:17
BarryOg18-Sep-06 11:17 
GeneralRe: How do I use a string as a parameter in a Win32 api function? Pin
PJ Arends18-Sep-06 17:44
professionalPJ Arends18-Sep-06 17:44 
QuestionI am looking for DataGrid Pin
NorGUI18-Sep-06 9:31
NorGUI18-Sep-06 9:31 
QuestionQuick C++ Questions Pin
BlitzPackage18-Sep-06 9:08
BlitzPackage18-Sep-06 9:08 

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.