New Member FAQ
|
Forums
|
Earn Revenue
Resources
Entrance
Ask Experts
Exam Papers
Jobs
English
Projects
Universities
Colleges
Courses
Schools
Training
My India
Members
|
Communities
|
Business Directory
|
Classifieds
|
Reviews
|
Silverlight Games
|
Peer Appraisal
|
Bookmarks
|
Polls
|
Mentors
|
Links
|
MCA Projects
|
Lobby
|
Gift Shop
|
Chat
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
PROSENJIT MANN...
(847)
Mr. Anindya
(453)
ashish
(422)
Last 7 Days
PROSENJIT MANN...
(1961)
Shobha Manasa
(1774)
Lenin
(1522)
more...
Awards & Gifts
Online Exams
Aptitude Questions
General Aptitude Tests
Medical Entrance
Engineering Entrance
Bank Tests
TOEFL & IELTS Questions
Fresher Jobs
Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi
Resources
Find educational articles, blogs, discussion threads and other resources.
Colleges
Find details about any college in India or search for courses.
MFC-Event Handling
Posted Date: Total Responses:
0
Posted By:
sherly
Member Level:
Silver
Points/Cash
: 1
Event Handling Using MFC
PROGRAM:
// CMFC_EventView construction/destruction
CMFC_EventView::CMFC_EventView() : m_ellipse(0,0,200,200)
{
m_color=GRAY_BRUSH;
}
// CMFC_EventView.Cpp
void CMFC_EventView::OnDraw(CDC* pDC)
{
pDC->SelectStockObject(m_color);
pDC->Ellipse(m_ellipse);
}
// CMFC_EventView message handlers
void CMFC_EventView::OnLButtonDown(UINT nFlags, CPoint point)
{
if(m_ellipse.PtInRect(point))
{
if(m_color == GRAY_BRUSH)
m_color = WHITE_BRUSH;
else
m_color = GRAY_BRUSH;
InvalidateRect(m_ellipse);
}
}
Project Feedbacks
No feedbacks found. Be the first to respond and make money from
revenue sharing program
.
Post Feedback
You must
Sign In
to post a feedback.
Next Project:
C++ program to print table of any number entered by the user
Previous Project:
Hidden Field Finder Program - With Source
Return to Project Index
Post New Project
Related Projects
TestCase in java
linked list
AVL Tree Implementation C++
Game Application
This is C Program to display message on Port number 3 of the Microcontroller
Advertise Here
Contact Us
Advertise
Editors
Privacy Policy
Terms Of Use
ISC Technologies.
2006 - 2009 All Rights Reserved.