?
Solved

IDC_IBEAM Icon

Posted on 1998-10-20
2
Medium Priority
?
1,239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
plaroche earned 150 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

743 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