|
|
I'm trying to adapt an MFC custom grid control to handle two-finger touchpad vertical scrolls.
Looking through the Messages list in Class Wizard, I don't see anything that seems related to this. The control already has OnMouseWheel and OnVScroll handlers, and they work fine.
There doesn't seem to be any documentation on this. Can someone tell me the secret two-finger-scroll event, or point me in the right direction?
Thanks!
Alan
|
|
|
|
|
Hi,
Alan Balkany wrote:
There doesn't seem to be any documentation on this.
I think you are looking for the WM_GESTURE message[^].
Alan Balkany wrote: Looking through the Messages list in Class Wizard, I don't see anything that seems related to this. The control already has OnMouseWheel and OnVScroll handlers, and they work fine.
Just manually add the message handler... it's a standard window message.
Best Wishes,
-David Delaune
|
|
|
|
|
I think you will find that two-finger touchpad scrolls will generate standard scroll messages: WM_MOUSEWHEEL , WM_VSCROLL or WM_HSCROLL as appropriate. Should be easy enough to test.
|
|
|
|
|
Hello,
Actually I have changed the path of generation of exe from Debug to some other folder in Visual Studio 2012. Its generating in desired folder but its not able to launch it becuase it still looking the exe in Debug folder while launching.
Can you please help me to change the setting to run it.?
|
|
|
|
|
Go to the project properties settings, by right clicking the project name in Visual Studio. Select the "General" node under Configuration Properties, and change the "Output Directory" setting.
|
|
|
|
|
Thanks for reply.
This is what I am doing. Changing the output dir path will only change the creation of executable path.
But when I run it using ctrl+f5 it gives error because program is looking the exe in old(debug) folder
|
|
|
|
|
Hi,
For debugging this... right click on your visual studio solution and click 'Properties'. Go down to 'Build Events' and add a 'Pre-Build Event' and add the following two lines:
echo Debugging Path: $(TargetPath)
echo Executable Path: $(OutDir)$(TargetName)$(TargetExt)
These should always be the same. The paths will be in your build output.
Follow the instructions given by Richard MacCutchan and only change the 'Output Directory' located in the 'General' property page. I have a feeling that you mistakenly changed the 'Linker->Output File'. If I am correct... change it back to the default value of '$(OutDir)$(TargetName)$(TargetExt)' and follow his instructions.
Best Wishes,
-David Delaune
|
|
|
|
|
Go to the next node in Properties named Debugging, and change the Command entry from $(TargetPath) to the same path as you previously changed, followed by $(TargetFileName) ; you may need a backslash in front.
But all of this begs the question: why? You are just storing up trouble for the future by not sticking to the defaults.
|
|
|
|
|
I created a poll to find out what IDE developers use when working with C/C++.
I will publish the results as soon as I get a number of answers which is statistically relevant.
Feel free to comment here why you use a particular IDE after voting.
|
|
|
|
|
vim , because is the fastest one.
|
|
|
|
|
I would not consider Vim an IDE, but I use it for quick tests and while running this poll I found out a massive amount of developers use it!
|
|
|
|
|
Well, it is not.
Why did you include it, then?
Still it is one of my favourite development tools.
|
|
|
|
|
As I said many people use and consider it an IDE, especially when combined with several plugins.
Also, the poll is not about what I think/use, it's about what people use.
|
|
|
|
|
emacs, Visual Studio Code, Visual Studio 2017, eclipse, notepad even.
|
|
|
|
|
Member 13665647 wrote: ...what IDE developers use when working with C/C++. VS6 at work, and VS2017 Community at home.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
David Crow wrote: VS6
HOT DAMN!!!
Must be working on really important legacy code to keep using VS6 ?
I'd rather be phishing!
|
|
|
|
|
It does what it needs to do.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Amen! Have a 5.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
David Crow wrote: It does what it needs to do.
Are you developing commercial products with VC6?
Best Wishes,
-David Delaune
|
|
|
|
|
Yes.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Hmmm,
You are working at IBM now? I thought you were at Pinnacle Business Systems. I remember e-mailing you there many years ago when you needed help with a CEdit derived class.
|
|
|
|
|
Randor wrote: I thought you were at Pinnacle Business Systems. Still am. We own the AJS product that IBM sells.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Respect!
I use VS2017 and still miss the old good VS6!
|
|
|
|