- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Im using CVF 6.6B in XP SP3.
I have a Qwin program that draws the map of my country (Brazil). I can pan and make a zoom box using REGISTERMOUSEEVENT etc. For zoom in and out I must click in a menu. I would like to use de mouse wheel to do the zoom in an out but it seems CVF does not have a MOUSE$WHEEL variable. I searched in this Forum and found a reply from Jugoslav saying that it is possible in Qwin:
2)QuickWin/Standard Graphics: yes (partially). See REGISTERMOUSEEVENT. The behaviour can be extended to middle button and mouse wheel handling by subclassing (see POKER sample) and then using the same technique as in 3)
3) Win32 applications: yes. You have to handle WM_LBUTTON* / WM_RBUTTON* / WM_MBUTTON* / WM_MOUSEWHEEL / WM_MOUSENMOVE messages in the window procedure.
Well, I looked in POKER sample and was completely lost. There is also a subclass sample but both are to much for my programing abilities. It would take me a long time to learn Win32 programing (at least 6 months to start understanding things, as someone said in a post in this forum).
Found nothing that could help me, in CVF Lowrence book ( could make the zoombox using this book).
Can anyone send me a simple example (not a full application) on using the mouse wheel in CVF?
Thanks for any help
Geraldo
Im using CVF 6.6B in XP SP3.
I have a Qwin program that draws the map of my country (Brazil). I can pan and make a zoom box using REGISTERMOUSEEVENT etc. For zoom in and out I must click in a menu. I would like to use de mouse wheel to do the zoom in an out but it seems CVF does not have a MOUSE$WHEEL variable. I searched in this Forum and found a reply from Jugoslav saying that it is possible in Qwin:
2)QuickWin/Standard Graphics: yes (partially). See REGISTERMOUSEEVENT. The behaviour can be extended to middle button and mouse wheel handling by subclassing (see POKER sample) and then using the same technique as in 3)
3) Win32 applications: yes. You have to handle WM_LBUTTON* / WM_RBUTTON* / WM_MBUTTON* / WM_MOUSEWHEEL / WM_MOUSENMOVE messages in the window procedure.
Well, I looked in POKER sample and was completely lost. There is also a subclass sample but both are to much for my programing abilities. It would take me a long time to learn Win32 programing (at least 6 months to start understanding things, as someone said in a post in this forum).
Found nothing that could help me, in CVF Lowrence book ( could make the zoombox using this book).
Can anyone send me a simple example (not a full application) on using the mouse wheel in CVF?
Thanks for any help
Geraldo
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page