Setting mouse mode in MFC

Discussions about document viewing.
Post Reply
AllanS
Posts: 8
Joined: Thu May 16, 2013 2:46 am

Setting mouse mode in MFC

Post by AllanS » Thu May 16, 2013 2:48 am

Hi,

Is there a way to set the mouse mode in CGdViewer using MFC through code without using UI?

For example, changing mouse mode -> area selection tool

User avatar
Loïc
Site Admin
Posts: 5665
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Setting mouse mode in MFC

Post by Loïc » Thu May 16, 2013 5:52 pm

Hi,

Yes just change the value of the MouseMode property of the GdViewer control.

Kind regards,

Loïc

AllanS
Posts: 8
Joined: Thu May 16, 2013 2:46 am

Re: Setting mouse mode in MFC

Post by AllanS » Thu May 16, 2013 8:39 pm

I saw it in the documentation but didn't know how in COM.
I found it now, it's get_MouseMode and put_MouseMode

Thanks for the confirmation!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests