Thread: disable the mouse? and window always on top

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    10

    disable the mouse? and window always on top

    how could i disable the mouse so the pointer disappears and wont move and how could i keep the program so its always on top

  2. #2
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    Posts
    186
    Use ShowCursor(true/false) to render or hide the cursor. As for keeping it in one place, you could continuously set it coordinates to a specific location whenever your program receives a mouse move message.

    On every Windows message loop, see if your window is on top and use ShowWindow() accordingly.
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 06:57 PM
  2. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  3. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 02:39 PM
  4. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  5. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM