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

C / C++ / MFC

 
GeneralRe: Copy/paste (other font) into RichEdit Pin
Rage3-Jun-03 3:30
professionalRage3-Jun-03 3:30 
GeneralRe: Copy/paste (other font) into RichEdit Pin
Michael Pauli4-Jun-03 0:15
Michael Pauli4-Jun-03 0:15 
GeneralPainting on a static Pin
Zizilamoroso2-Jun-03 23:28
Zizilamoroso2-Jun-03 23:28 
GeneralRe: Painting on a static Pin
Rage3-Jun-03 3:08
professionalRage3-Jun-03 3:08 
GeneralDial up connections, please help Pin
Jump_Around2-Jun-03 23:03
Jump_Around2-Jun-03 23:03 
QuestionHow can I ignore the newline character when using fgets() Pin
jcpooh2-Jun-03 22:33
jcpooh2-Jun-03 22:33 
AnswerRe: How can I ignore the newline character when using fgets() Pin
David Crow3-Jun-03 2:52
David Crow3-Jun-03 2:52 
General!!illegal operation when clicking the edit box of CTreeView Pin
black19212-Jun-03 21:54
black19212-Jun-03 21:54 
I create a tri-splitter view with a CIndexView(with TVS_EDITLABELS style) in each pane, but when I click the mouse over the editbox, there is an illegal operation. the code is as following: (VC6, Debug configuration),Thanks very much!

int CTriSplitView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CView::OnCreate(lpCreateStruct) == -1)
return -1;

// Create the splitter wnd.
m_wndSplitter.CreateStatic(this, 1, 2);

// add the third splitter pane - which is a nested splitter with 2 rows
if (!m_wndSplitter2.CreateStatic(&m_wndSplitter, // our parent window is the first splitter
2, 1, // the new splitter is 2 rows, 1 column
WS_CHILD | WS_VISIBLE | WS_BORDER, // style, WS_BORDER is needed
m_wndSplitter.IdFromRowCol(0, 1))) // new splitter is in the first row, 3rd column of first splitter
{
TRACE0("Failed to create nested splitter\n");
return -1;
}

CCreateContext *pContext = (CCreateContext*)lpCreateStruct->lpCreateParams;
if (!m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CTreeView), CSize(150, 0), pContext))
{
TRACE0("Failed to create COutlookTreeView\n");
return FALSE;
}

if (!m_wndSplitter2.CreateView(0, 0, RUNTIME_CLASS(CTreeView), CSize(0, 450), pContext))
{
TRACE0("Failed to create COutlookTreeView\n");
return FALSE;
}

if (!m_wndSplitter2.CreateView(1, 0, RUNTIME_CLASS(CTreeView), CSize(0, 0), pContext))
{
TRACE0("Failed to create COutlookTreeView\n");
return FALSE;
}

DWORD dwTreeStyle = WS_VISIBLE | TVS_EDITLABELS;
dwTreeStyle |= TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT;
CTreeView* pView = (CTreeView*)m_wndSplitter.GetPane(0, 0);
pView->ModifyStyle(0, dwTreeStyle);

for(int i = 0; i < 10; i++)
{
CString str;
str.Format("%d", i);
pView->GetTreeCtrl().InsertItem(str);
}
return 0;
}

P.S. If above codes are placed in CMainFrame::OnCreateClient, It does work with no problem
GeneralRe: !!illegal operation when clicking the edit box of CTreeView Pin
black19212-Jun-03 21:56
black19212-Jun-03 21:56 
GeneralHelp !!! How to edit, append, read data from an access dbase file using CRecordset class Pin
mhar2-Jun-03 21:52
professionalmhar2-Jun-03 21:52 
GeneralRe: Help !!! How to edit, append, read data from an access dbase file using CRecordset class Pin
David Crow3-Jun-03 3:03
David Crow3-Jun-03 3:03 
GeneralRe: Help !!! How to edit, append, read data from an access dbase file using CRecordset class Pin
mhar3-Jun-03 14:21
professionalmhar3-Jun-03 14:21 
GeneralRe: Help !!! How to edit, append, read data from an access dbase file using CRecordset class Pin
David Crow4-Jun-03 2:50
David Crow4-Jun-03 2:50 
GeneralDLL as an extra process Pin
AnTri2-Jun-03 21:51
AnTri2-Jun-03 21:51 
GeneralRe: DLL as an extra process Pin
Anna-Jayne Metcalfe3-Jun-03 0:02
Anna-Jayne Metcalfe3-Jun-03 0:02 
GeneralRe: DLL as an extra process Pin
AnTri3-Jun-03 0:54
AnTri3-Jun-03 0:54 
GeneralRe: DLL as an extra process Pin
Anna-Jayne Metcalfe3-Jun-03 1:10
Anna-Jayne Metcalfe3-Jun-03 1:10 
GeneralRe: DLL as an extra process Pin
AnTri3-Jun-03 1:17
AnTri3-Jun-03 1:17 
GeneralRe: DLL as an extra process Pin
Anna-Jayne Metcalfe3-Jun-03 1:46
Anna-Jayne Metcalfe3-Jun-03 1:46 
GeneralRe: DLL as an extra process Pin
Neville Franks3-Jun-03 2:16
Neville Franks3-Jun-03 2:16 
GeneralRe: DLL as an extra process Pin
Chris Richardson3-Jun-03 6:01
Chris Richardson3-Jun-03 6:01 
QuestionHow can I load and render 3dstudio files in visual c++? Pin
Mohsen Jamali2-Jun-03 21:46
Mohsen Jamali2-Jun-03 21:46 
AnswerRe: How can I load and render 3dstudio files in visual c++? Pin
Zizilamoroso2-Jun-03 23:32
Zizilamoroso2-Jun-03 23:32 
GeneralRe: How can I load and render 3dstudio files in visual c++? Pin
Anonymous6-Jun-03 19:51
Anonymous6-Jun-03 19:51 
GeneralRe: How can I load and render 3dstudio files in visual c++? Pin
Zizilamoroso8-Jun-03 6:19
Zizilamoroso8-Jun-03 6:19 

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.