Solved

Mouse rotutine similar to Lightwave3D

Posted on 1998-10-19
1
398 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 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
WinWaitActive parameters 12 31
no14 challenge 14 77
zeroMAx challenge 20 135
JQuery serialize and unserialize 8 269
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 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