Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: string functions Pin
Paolo Messina21-Aug-01 11:42
professionalPaolo Messina21-Aug-01 11:42 
GeneralDocking a dialog based app Pin
Bret Faller21-Aug-01 8:32
Bret Faller21-Aug-01 8:32 
GeneralOutput file Pin
21-Aug-01 7:07
suss21-Aug-01 7:07 
GeneralRe: Output file Pin
Ravi Bhavnani21-Aug-01 7:30
professionalRavi Bhavnani21-Aug-01 7:30 
GeneralRe: Output file Pin
22-Aug-01 10:26
suss22-Aug-01 10:26 
GeneralRe: Output file Pin
22-Aug-01 10:26
suss22-Aug-01 10:26 
GeneralRe: Output file Pin
Ravi Bhavnani22-Aug-01 10:35
professionalRavi Bhavnani22-Aug-01 10:35 
GeneralDesperately attempting to attach a view to a frame Pin
BigBear21-Aug-01 6:05
BigBear21-Aug-01 6:05 
Hi, I have a CFrameWnd derived class that works fine using its default view however I need it to use a different view entirely. I am not using a Doc/View architecture so this is the first time I have attempted to set a frames active view by hand and I am haveing many problems, a few questions:
Exactly where in a CFrameWnd derived classes construction process do I create a new view and attach it to the frame, if possible I do not want the default CView to be hanging around if possible.
How exactly do I create a CView derived class, for example this asserts in my attempts:
view->Create(NULL,NULL,WS_VISIBLE | WS_CHILD,rect,NULL,0);
It asserts due to the WS_CHILD part.
This code (with the CView * cast to a CWnd * to illiminate the WS_CHILD assert) works up until the CFrameWnd::SetActiveView where an assert is thrown due to having WS_CHILD window set.
wnd->Create(NULL, NULL, AFX_WS_DEFAULT_VIEW | WS_CHILD,
CRect(0,0,0,0), this, 0, &context);
in this code the context structure is set to contain the runtime class of the view, and NULL for the document part and the CFrameWnd for the frame part.


Has anyone any idea how to create/add a new view to a CFrameWnd without using docview (and even without using CRuntimeClass's)
Confused | :confused:

Thanks
Generaldrawing a graph in vc++ Pin
21-Aug-01 5:11
suss21-Aug-01 5:11 
GeneralRe: drawing a graph in vc++ Pin
Ravi Bhavnani21-Aug-01 7:33
professionalRavi Bhavnani21-Aug-01 7:33 
GeneralHelp file in the tool menu Pin
21-Aug-01 5:01
suss21-Aug-01 5:01 
GeneralChange background color of Static control Pin
JerzyPeter21-Aug-01 4:59
JerzyPeter21-Aug-01 4:59 
GeneralNetMessageBufferSend API calls Pin
21-Aug-01 4:57
suss21-Aug-01 4:57 
GeneralRe: NetMessageBufferSend API calls Pin
Paolo Messina21-Aug-01 11:35
professionalPaolo Messina21-Aug-01 11:35 
GeneralRe: NetMessageBufferSend API calls Pin
22-Aug-01 4:05
suss22-Aug-01 4:05 
GeneralRe: NetMessageBufferSend API calls Pin
23-Aug-01 4:34
suss23-Aug-01 4:34 
GeneralRe: NetMessageBufferSend API calls Pin
Paolo Messina23-Aug-01 7:52
professionalPaolo Messina23-Aug-01 7:52 
GeneralRe: NetMessageBufferSend API calls Pin
Marat Bedretdinov21-Aug-01 11:57
Marat Bedretdinov21-Aug-01 11:57 
GeneralRe: NetMessageBufferSend API calls Pin
22-Aug-01 4:07
suss22-Aug-01 4:07 
GeneralRe: NetMessageBufferSend API calls Pin
Paolo Messina23-Aug-01 8:05
professionalPaolo Messina23-Aug-01 8:05 
GeneralCommand Language Dialect in ADO Stream Pin
Ryszard Krakowiak21-Aug-01 3:48
Ryszard Krakowiak21-Aug-01 3:48 
QuestionWho REALLY knows the workings of CSplitterWnd? Pin
Tommy H D Svensson21-Aug-01 2:02
Tommy H D Svensson21-Aug-01 2:02 
AnswerRe: Who REALLY knows the workings of CSplitterWnd? Pin
Michael Dunn21-Aug-01 7:52
sitebuilderMichael Dunn21-Aug-01 7:52 
GeneralCheck out this splitter bug!!! Pin
Tommy H D Svensson21-Aug-01 1:47
Tommy H D Svensson21-Aug-01 1:47 
GeneralAccelerator Pin
San21-Aug-01 1:20
San21-Aug-01 1:20 

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.