Solved

Mouse rotutine similar to Lightwave3D

Posted on 1998-10-19
1
301 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
1 Comment
 
LVL 3

Accepted Solution

by:
zhongbing earned 50 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

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
string initialization in java 11 103
ffmpeg - "rtsp://...... Operation not permitted" 4 69
isEverywhere  challenge 19 64
fix34  challenge 9 97
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

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

21 Experts available now in Live!

Get 1:1 Help Now