Solved

Mouse rotutine similar to Lightwave3D

Posted on 1998-10-19
1
370 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

828 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