Solved

IDC_IBEAM Icon

Posted on 1998-10-20
2
1,151 Views
Last Modified: 2013-11-20
I am having a night-mare with my application. You see my View class is a sub-class of CScrollView. I have created an interface similar to spread-sheets using CRect class. My probleam is that I want the IDC_IBEAM cursor to be shownwhen text is entered to the CRect class, just like when the View class is a sub-class of CEditView.

I cannot change the inheritance to CEditView as the application has reached a level of complexity where-by changing this would mean re-doing the whole application again.

Please help, I have a serious time schedule, the project deadline is very near.

Billy
0
Comment
Question by:billyh
2 Comments
 
LVL 3

Accepted Solution

by:
plaroche earned 50 total points
ID: 1323558
Override OnSetCursor(), check where the cursor is positioned and set change the cursor's shape if it's in one of the rect regions.
0
 
LVL 1

Author Comment

by:billyh
ID: 1323559
plaroche

Thanx for the advice, it gave the idea. I will give you the points. I found the solution in this other MFC book I am using thanx anyhow.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Process filename extension 3 172
ASCII Non-Printable characters/codes and their HTML equivalents 6 106
mapAB Challlenge 35 128
Excel file not created as expected 7 51
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now