Solved

IDC_IBEAM Icon

Posted on 1998-10-20
2
1,130 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
ODBC Connection Logging, ADO.NET 6 50
Shell script to login to remote m/c and execute commands 10 72
twoTwo  challenge 35 86
pre4 challenge 19 88
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 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

17 Experts available now in Live!

Get 1:1 Help Now