Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: callbacks in C++: member function pointers / objects Pin
Chris Losinger17-Oct-07 8:37
professionalChris Losinger17-Oct-07 8:37 
GeneralRe: callbacks in C++: member function pointers / objects Pin
elmendavies18-Oct-07 0:12
elmendavies18-Oct-07 0:12 
AnswerRe: callbacks in C++: member function pointers / objects Pin
Stephen Hewitt17-Oct-07 16:44
Stephen Hewitt17-Oct-07 16:44 
GeneralRe: callbacks in C++: member function pointers / objects Pin
elmendavies18-Oct-07 0:17
elmendavies18-Oct-07 0:17 
GeneralRe: callbacks in C++: member function pointers / objects Pin
Stephen Hewitt18-Oct-07 14:26
Stephen Hewitt18-Oct-07 14:26 
Questionerror in splitt, Help Pin
satw1417-Oct-07 6:32
satw1417-Oct-07 6:32 
QuestionRe: error in splitt, Help Pin
David Crow17-Oct-07 6:39
David Crow17-Oct-07 6:39 
AnswerRe: error in splitt, Help [modified] Pin
satw1417-Oct-07 12:16
satw1417-Oct-07 12:16 
//-MainFrm.cpp
Removed roles created by default and inclusions classes (include).

Here I try to create a view or two panels in the main view.

// CMainFrame construction/destruction

CMainFrame::CMainFrame()
{
// TODO: add member initialization code here
m_wndSplitter=NULL;

}

CMainFrame::~CMainFrame()
{
if (m_wndSplitter != NULL) delete m_wndSplitter;

}

//--Cleft and AreaView These classes are now aggregated
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs,
CCreateContext* pContext)
{
m_wndSplitter=new CSplitterWnd();
if(!m_wndSplitter->CreateStatic(this,1,2))return false;
if(!m_wndSplitter->CreateView(0,0,RUNTIME_CLASS(CLeft),CSize(200,200),pContext))return false;
if(!m_wndSplitter->CreateView(0,1,RUNTIME_CLASS(AreaView),CSize(100,100),pContext))return false;
return TRUE;
}


// CMainFrame diagnostics

// when When I finished the program sends the mistake and put me here
#ifdef _DEBUG
void CMainFrame::AssertValid() const
{
CFrameWnd::AssertValid(); //here
}

void CMainFrame::Dump(CDumpContext& dc) const
{
CFrameWnd::Dump(dc);
}

#endif //_DEBUG


thanks David
-- modified at 18:24 Wednesday 17th October, 2007
QuestionRe: error in splitt, Help Pin
David Crow17-Oct-07 17:50
David Crow17-Oct-07 17:50 
AnswerRe: error in splitt, Help Pin
James R. Twine17-Oct-07 7:04
James R. Twine17-Oct-07 7:04 
QuestionHow to Convert a Float to a string Pin
saravana00117-Oct-07 5:37
saravana00117-Oct-07 5:37 
AnswerRe: How to Convert a Float to a string Pin
Nelek17-Oct-07 5:44
protectorNelek17-Oct-07 5:44 
AnswerRe: How to Convert a Float to a string Pin
Chris Losinger17-Oct-07 5:46
professionalChris Losinger17-Oct-07 5:46 
AnswerRe: How to Convert a Float to a string Pin
VonHagNDaz17-Oct-07 5:59
VonHagNDaz17-Oct-07 5:59 
GeneralRe: How to Convert a Float to a string Pin
James R. Twine17-Oct-07 6:57
James R. Twine17-Oct-07 6:57 
GeneralRe: How to Convert a Float to a string Pin
VonHagNDaz17-Oct-07 7:09
VonHagNDaz17-Oct-07 7:09 
GeneralRe: How to Convert a Float to a string Pin
David Crow17-Oct-07 7:46
David Crow17-Oct-07 7:46 
GeneralRe: How to Convert a Float to a string Pin
ThatsAlok17-Oct-07 21:02
ThatsAlok17-Oct-07 21:02 
AnswerRe: How to Convert a Float to a string Pin
jhwurmbach17-Oct-07 6:29
jhwurmbach17-Oct-07 6:29 
QuestionRe: How to Convert a Float to a string Pin
David Crow17-Oct-07 6:40
David Crow17-Oct-07 6:40 
QuestionRegarding CreateRemoteThread Pin
ramana.g17-Oct-07 4:02
ramana.g17-Oct-07 4:02 
AnswerRe: Regarding CreateRemoteThread Pin
led mike17-Oct-07 4:19
led mike17-Oct-07 4:19 
GeneralRe: Regarding CreateRemoteThread Pin
Mike Dimmick17-Oct-07 6:46
Mike Dimmick17-Oct-07 6:46 
GeneralRe: Regarding CreateRemoteThread Pin
led mike17-Oct-07 7:03
led mike17-Oct-07 7:03 
AnswerRe: Regarding CreateRemoteThread Pin
Stephen Hewitt17-Oct-07 16:48
Stephen Hewitt17-Oct-07 16:48 

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.