Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Mouse rotutine similar to Lightwave3D

Posted on 1998-10-19
1
Medium Priority
?
428 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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

772 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