Click here to Skip to main content
15,907,149 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiongina problem? Pin
imran_rafique10-Dec-02 9:30
imran_rafique10-Dec-02 9:30 
AnswerPlease, I beg you all.... Pin
Christian Graus10-Dec-02 15:19
protectorChristian Graus10-Dec-02 15:19 
GeneralRe: Please, I beg you all.... Pin
Anonymous10-Dec-02 15:27
Anonymous10-Dec-02 15:27 
GeneralRe: Please, I beg you all.... Pin
Andreas Saurwein13-Dec-02 3:57
Andreas Saurwein13-Dec-02 3:57 
Generalplz ans Pin
imran_rafique10-Dec-02 9:28
imran_rafique10-Dec-02 9:28 
GeneralRe: plz ans Pin
Neville Franks10-Dec-02 10:20
Neville Franks10-Dec-02 10:20 
Questiongina logon? Pin
imran_rafique10-Dec-02 9:24
imran_rafique10-Dec-02 9:24 
QuestionHow do I draw an X in a View? Pin
Anonymous10-Dec-02 8:41
Anonymous10-Dec-02 8:41 
I am trying to do something like this ...

CMyDoc::CMyDoc()
{
// TODO: add one-time construction code here
m_point = CPoint( 30, 30 );
m_upperLeft = CPoint( ??? something ??? , ??? something ??? );
m_lowerRight = CPoint( ??? something ???, ??? something ??? );

}

... and then do this ...

void CMyView::OnDraw(CDC* pDC)
{
CMyDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
pDC->MoveTo( pDoc->m_upperLeft.x, pDoc->m_upperLeft.y );
pDC->LineTo( pDoc->m_lowerRight.x, pDoc->m_lowerRight.y );
pDC->MoveTo( pDoc->m_upperLeft.x, pDoc->m_lowerRight.y );
pDC->LineTo( pDoc->m_lowerRight.x, pDoc->m_upperLeft.y );

}

... what should I replace the ???something???'s with Smile | :)
AnswerRe: How do I draw an X in a View? Pin
Ranjan Banerji10-Dec-02 8:46
Ranjan Banerji10-Dec-02 8:46 
GeneralRe: How do I draw an X in a View? Pin
Anonymous10-Dec-02 8:52
Anonymous10-Dec-02 8:52 
GeneralRe: How do I draw an X in a View? Pin
PJ Arends10-Dec-02 9:26
professionalPJ Arends10-Dec-02 9:26 
GeneralRe: How do I draw an X in a View? Pin
Anonymous10-Dec-02 9:04
Anonymous10-Dec-02 9:04 
GeneralMFC with Opengl .. Urgent... Pin
sakya_trips10-Dec-02 8:25
sakya_trips10-Dec-02 8:25 
GeneralRe: MFC with Opengl .. Urgent... Pin
carrie10-Dec-02 8:27
carrie10-Dec-02 8:27 
GeneralUrgent Help Needed Pin
SamirSood10-Dec-02 7:53
SamirSood10-Dec-02 7:53 
GeneralRe: Urgent Help Needed Pin
Neville Franks10-Dec-02 10:15
Neville Franks10-Dec-02 10:15 
GeneralDirectory listing with Visual C++ Pin
microcyb10-Dec-02 7:40
microcyb10-Dec-02 7:40 
GeneralRe: Directory listing with Visual C++ Pin
carrie10-Dec-02 8:30
carrie10-Dec-02 8:30 
GeneralRe: Directory listing with Visual C++ Pin
microcyb10-Dec-02 9:49
microcyb10-Dec-02 9:49 
GeneralRe: Directory listing with Visual C++ Pin
carrie10-Dec-02 10:10
carrie10-Dec-02 10:10 
GeneralRe: Directory listing with Visual C++ Pin
microcyb10-Dec-02 11:06
microcyb10-Dec-02 11:06 
Generalimport statement Pin
J. Schermerhorn10-Dec-02 7:37
J. Schermerhorn10-Dec-02 7:37 
GeneralRe: import statement Pin
Chris Losinger10-Dec-02 11:49
professionalChris Losinger10-Dec-02 11:49 
GeneralRe: import statement Pin
J. Schermerhorn10-Dec-02 14:22
J. Schermerhorn10-Dec-02 14:22 
GeneralKeyboard accelerator question Pin
joblemar10-Dec-02 6:00
sussjoblemar10-Dec-02 6:00 

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.