disable the mouse? and window always on top

This is a discussion on disable the mouse? and window always on top within the Windows Programming forums, part of the Platform Specific Boards category; how could i disable the mouse so the pointer disappears and wont move and how could i keep the program ...

  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, 10:06 AM
  3. Why only 32x32? (OpenGL) [Please help]
    By Queatrix in forum Game Programming
    Replies: 2
    Last Post: 01-23-2006, 01: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21