1. faq: customize the file open dialog's view mode
2. faq how to add print to dialog
Hi,
There is a graph in my dialog based programme. The demo code is based on
CView, so it has
OnPreparePrinting(CPrintInfo* pInfo)
OnPrint(CDC* pDC, CPrintInfo* pInfo)
How I can add those function to my code? Or to create the device context
of it.
The graph is creat on a static control.
I realy need the CDC* pDC .
Thank you so much.
3. How to add a Dialog in a View
4. Dialog ontop of Form View View Problem
Hai
I am calling a Dialog from FormView and when i call that Dialog the Dialog
is always at the top of the view and i want view to be on top of Dialog when
i click mouse on the view and is there any thing that iam doing wrong
Thanks and Regards
suresh
5. faq how to add jpg to static control
6. faq CArray member function Add problem
Hi,
Headcke!
I define some classes as fellows:
CMyPoint
{
...
CMyPoint(const long &xx, const long &yy);
CMyPoint(const CMyPoint &cmpt);
CMyPoint(const CPoint &cpt);
CMyPoint& operator = (const CMyPoint &assmypt);
CMyPoint& operator = (const CPoint &asspt);
...
};
CSegment
{
...
CList<CMyPoint,CMyPoint> m_PointList;
...
CSegment& operator = (const CSegment& asssignsegmet);
...
};
But when I use them
CArray<CSegment,CSegment> tmpmyarray;
CSegment tmpsegment;
tmpsegment.m_PointList.RemoveAll();
tmpsegment.m_nIndex=0;
tmpsegment.m_bIsVisited=false;
tmpsegment.m_bCreatDirection=true;
tmpsegment.m_nSegmentTotalNumber=0;
tmpmyarray.Add(tmpsegment); <-- remove this compile ok!
the compile output
------ Build started: Project: maxborder, Configuration: Debug Win32 ------
Compiling...
maxborder.cpp
maxborderView.cpp
c:\program files\microsoft visual studio
8\vc\atlmfc\include\afxtempl.h(781) : error C2248: 'CObject::CObject' :
cannot
access private member declared in class 'CObject'
c:\program files\microsoft visual studio
8\vc\atlmfc\include\afx.h(553) : see declaration of 'CObject::CObject'
c:\program files\microsoft visual studio
8\vc\atlmfc\include\afx.h(524) : see declaration of 'CObject'
This diagnostic occurred in the compiler generated function
'CList<TYPE,ARG_TYPE>::CList(const CList<TYPE,ARG_TYPE>
&)'
with
[
TYPE=CMyPoint,
ARG_TYPE=CMyPoint
]
Segment.cpp
Generating Code...
Build log was saved at "file://c:\Documents and Settings\fc\\
borderlast\maxborder\maxborder\Debug\BuildLog.htm"
maxborder - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
What is wrong with my code? Help me!
Thanks a lot.
7. faq can not add Template declarations
Hi, I have a mfc windows programme base on a dialog. Now I want to chang the size of the dialog 320x240 to 1024x768 when it star to run and center it. How should I do? Thanks.