Rect2
MFC Rect2
MFC Rect2
MFC Rect2
MFC Rect2
MFC Rect2
MFC Rect2
void CRect2View::OnRButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CClientDC dc(this);
CRect rect;
GetClientRect(&rect);
CPen pen(PS_SOLID, 2, RGB(255, 0, 0));
dc.SelectObject(&pen);
for (int x = 0; x < rect.Width(); x += 20)
{
dc.MoveTo(x, 0);
dc.LineTo(x, rect.Height());
}
CView::OnRButtonDown(nFlags, point);
}
MFC Rect2
MFC Rect2
MFC Rect2
MFC Rect2
void CRect2View::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CClientDC dc(this);
CRect rect;
GetClientRect(&rect);
CPen pen(PS_SOLID, 2, RGB(0, 0, 255));
dc.SelectObject(&pen);
for (int x = 0; x < rect.Height(); x += 20)
{
dc.MoveTo(0, x);
dc.LineTo(rect.Width(), x);
}
CView::OnLButtonDown(nFlags, point);
}
MFC Rect2

More Related Content

PPTX
DOCX
Jarmo van de Seijp Shadbox ERC223
PDF
26. composite l2qtouchpad
PPTX
Function basics
DOCX
Pratik Bakane C++
DOCX
Pratik Bakane C++
DOCX
Pratik Bakane C++
PDF
C++ Question on References and Function Overloading
Jarmo van de Seijp Shadbox ERC223
26. composite l2qtouchpad
Function basics
Pratik Bakane C++
Pratik Bakane C++
Pratik Bakane C++
C++ Question on References and Function Overloading

What's hot (20)

DOCX
Pratik Bakane C++
DOCX
Pratik Bakane C++
PDF
C++ programs
PPTX
New presentation oop
PDF
Unit 1 ocs752 introduction to c programming
DOCX
PDF
please sir i want to comments of every code what i do in eachline . in this w...
PDF
Implementing string
PDF
Class 6 2ciclo
PDF
Multi qubit entanglement
DOCX
Assignement of programming & problem solving
PPTX
2 d array(part 1) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
PPTX
2 d array(part 2) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
PPTX
Principais vulnerabilidades em Smart Contracts e como evitá-las
DOCX
Temp conversion
PDF
To designing counters using verilog code
DOCX
Program persamaan kuadrat
PPTX
Mcrl2 by kashif.namal@gmail.com, adnanskyousafzai@gmail.com
DOCX
Cpp programs
Pratik Bakane C++
Pratik Bakane C++
C++ programs
New presentation oop
Unit 1 ocs752 introduction to c programming
please sir i want to comments of every code what i do in eachline . in this w...
Implementing string
Class 6 2ciclo
Multi qubit entanglement
Assignement of programming & problem solving
2 d array(part 1) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
2 d array(part 2) || 2D ARRAY FUNCTION WRITING || GET 100% MARKS IN CBSE CS
Principais vulnerabilidades em Smart Contracts e como evitá-las
Temp conversion
To designing counters using verilog code
Program persamaan kuadrat
Mcrl2 by kashif.namal@gmail.com, adnanskyousafzai@gmail.com
Cpp programs
Ad

More from Razvan Raducanu, PhD (20)

PPTX
12. edit record
PPTX
11. delete record
PPTX
10. view one record
PPTX
9. add new record
PPTX
8. vederea inregistrarilor
PPTX
PPTX
6. hello popescu 2
PPTX
5. hello popescu
PPTX
4. forme in zend framework 3
PPTX
3. trimiterea datelor la vederi
PPTX
2.routing in zend framework 3
PPTX
1. zend framework intro
PPTX
18. images in symfony 4
PPTX
17. delete data
PPTX
16. edit data
PPTX
15. view single data
PPTX
14. add data in symfony4
PPTX
13. view data
PPTX
12.doctrine view data
PPTX
11. move in Symfony 4
12. edit record
11. delete record
10. view one record
9. add new record
8. vederea inregistrarilor
6. hello popescu 2
5. hello popescu
4. forme in zend framework 3
3. trimiterea datelor la vederi
2.routing in zend framework 3
1. zend framework intro
18. images in symfony 4
17. delete data
16. edit data
15. view single data
14. add data in symfony4
13. view data
12.doctrine view data
11. move in Symfony 4
Ad

Recently uploaded (20)

PDF
Journal of Dental Science - UDMY (2022).pdf
PDF
Climate and Adaptation MCQs class 7 from chatgpt
PDF
My India Quiz Book_20210205121199924.pdf
PDF
CRP102_SAGALASSOS_Final_Projects_2025.pdf
PPTX
What’s under the hood: Parsing standardized learning content for AI
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PPTX
DRUGS USED FOR HORMONAL DISORDER, SUPPLIMENTATION, CONTRACEPTION, & MEDICAL T...
PDF
Journal of Dental Science - UDMY (2021).pdf
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PPTX
Climate Change and Its Global Impact.pptx
PDF
Literature_Review_methods_ BRACU_MKT426 course material
PPTX
Education and Perspectives of Education.pptx
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
PDF
Hazard Identification & Risk Assessment .pdf
PDF
Empowerment Technology for Senior High School Guide
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
Journal of Dental Science - UDMY (2022).pdf
Climate and Adaptation MCQs class 7 from chatgpt
My India Quiz Book_20210205121199924.pdf
CRP102_SAGALASSOS_Final_Projects_2025.pdf
What’s under the hood: Parsing standardized learning content for AI
A powerpoint presentation on the Revised K-10 Science Shaping Paper
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
Unit 4 Computer Architecture Multicore Processor.pptx
DRUGS USED FOR HORMONAL DISORDER, SUPPLIMENTATION, CONTRACEPTION, & MEDICAL T...
Journal of Dental Science - UDMY (2021).pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
Environmental Education MCQ BD2EE - Share Source.pdf
Climate Change and Its Global Impact.pptx
Literature_Review_methods_ BRACU_MKT426 course material
Education and Perspectives of Education.pptx
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
Hazard Identification & Risk Assessment .pdf
Empowerment Technology for Senior High School Guide
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf

MFC Rect2

  • 8. void CRect2View::OnRButtonDown(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default CClientDC dc(this); CRect rect; GetClientRect(&rect); CPen pen(PS_SOLID, 2, RGB(255, 0, 0)); dc.SelectObject(&pen); for (int x = 0; x < rect.Width(); x += 20) { dc.MoveTo(x, 0); dc.LineTo(x, rect.Height()); } CView::OnRButtonDown(nFlags, point); }
  • 13. void CRect2View::OnLButtonDown(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default CClientDC dc(this); CRect rect; GetClientRect(&rect); CPen pen(PS_SOLID, 2, RGB(0, 0, 255)); dc.SelectObject(&pen); for (int x = 0; x < rect.Height(); x += 20) { dc.MoveTo(0, x); dc.LineTo(rect.Width(), x); } CView::OnLButtonDown(nFlags, point); }