Thread: Scrolling/zoom problems

  1. #1
    Registered User
    Join Date
    Feb 2006
    Location
    Leiden, NL
    Posts
    12

    Question Scrolling/zoom problems

    Hi there,

    I'm able to create a graph of the main roads of my country! I've also created a zoom possibility with the scrollbutton of the mouse (WM_MOUSEWHEEL). The problem however is that when I scroll very gently (only one tick of the scroll button further) the image keeps zooming in/out untill I click somewhere (which is catched by WM_LBUTTONDOWN). Then it stops zooming.
    If I scroll faster (multpile clicks at a time) the image zooms in at a bigger step and only once (as it should).

    Does anyone have an idea what causes the continuous zoom when scrolling per 1 'click'????

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Not without some code.

  3. #3
    Registered User
    Join Date
    Feb 2006
    Location
    Leiden, NL
    Posts
    12

    Talking fixed it

    NM, fixed it.. Changed PeekMessage in the main loop to GetMessage(&msg, hwnd, 0, 0);

    Thnx neway...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  2. C Pointers Problems
    By mhelal in forum C Programming
    Replies: 8
    Last Post: 01-10-2007, 06:35 AM
  3. String Manipulation problems -_-
    By Astra in forum C Programming
    Replies: 5
    Last Post: 12-13-2006, 05:48 PM
  4. Rendering problems (DirectX?)
    By OnionKnight in forum Tech Board
    Replies: 0
    Last Post: 08-17-2006, 12:17 PM
  5. DJGPP problems
    By stormswift in forum C Programming
    Replies: 2
    Last Post: 02-26-2002, 04:35 PM