Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Mouse rotutine similar to Lightwave3D

Posted on 1998-10-19
1
Medium Priority
?
420 Views
Last Modified: 2013-11-20
I want to do a mouseroutine that is similar to that one in
lightwave (You press down a button on a toolbar, and the button becomes "selected" until you release the mousebutton
The mouse allso gets invisible and now can you move around the 3d view) The mouse becomes visible when releaseing the mouse button. how to do this?
0
Comment
Question by:DanielC
[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
1 Comment
 
LVL 3

Accepted Solution

by:
zhongbing earned 100 total points
ID: 1323519
i don't know the what lightwave look like. but i think you need sth to change cursor, my idea is:
1. override OnLButtonDown() to set one flag, say "YourFlag" true.
2. override OnMouseMove() , check the flag , if it's true, then change the cursor :
    a. ::SetClassLong(GetSafeHwnd(), GCL_HCURSOR, NULL); to change the default cursor to null.
    b. use SetCursor() to set your new cursor;
    c. maybe ::SetClassLong(GetSafeHwnd(), GCL_HCURSOR, (LONG)m_hcurDefault) to let the default cursor back
3. override OnLButtonUp() , set the flag false.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

688 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