Type: Posts; User: MasterDucky
Search took 0.02 seconds.
March 26th, 2015, 12:47 PM
So if I understand it well, the compiler knows that they are there and only going to allocate them once.
March 26th, 2015, 12:08 PM
Ah, OK I get it now!
I had to calculate the 25 from the 100, so its 100+25.
Thank you Victor, I thought I would have never understood it. :)
March 25th, 2015, 01:51 PM
Thank you, very informative!
That makes sense, thanks!
March 25th, 2015, 11:43 AM
My 'top left' of the rectangle that I'm invalidating is actually the bottom left?
Then how come it writes to the right place when you move a window over it?
March 25th, 2015, 12:10 AM
So its best to declare them in the "case" that uses them.
I think globals are bad in a large program where you use them in different places. In a small program it doesnt really matter.
March 24th, 2015, 12:07 PM
I think the coords are OK because if I do this it will write to the same place.
TextOut(hdc, 20, 100, buf, strlen(buf));
TextOut(hdc, rText.left, rText.top, "ccccccccccc", 10);
March 24th, 2015, 12:01 PM
Thanks a lot for the explanation!
So it's OK if I stop declaring them there and just declare them as globals instead?
March 24th, 2015, 06:13 AM
I see variables declared even in professional code outside of the switch() message loop inside WndProc.
It means that they are declared at least 100 times a second again and again.
How is it a...
March 24th, 2015, 01:22 AM
Im trying to refresh one part of the window with InvalidateRect but it wont get refreshed right away. It will be if you move another window over it.
What am I doing wrong?
February 6th, 2015, 03:35 AM
February 1st, 2015, 09:49 AM
February 1st, 2015, 07:57 AM
On MSDN it says /LIBPATH:dir is the switch to add additional lib path.
In the cl.exe --help there is no such a switch.
And when I use /LIBPATH:C: I get D9002 'Ignoring unknown option' error.
January 30th, 2015, 10:49 AM
I'm following this MSDN tutorial to preview video from my webcam.
I wrote the code but it's crashing on
January 3rd, 2015, 04:41 AM
Yes, TreeView_HitTest is the way to go. There is even a pointer to the item clicked: lpht.hItem.
Thank you very much for both of you! :)
Happy New Year!
January 3rd, 2015, 03:45 AM
I would like to use this solution as it seems to be the simplest but the problem is that you wont get TVN_SELCHANGED message if you click the same item again since the item is still selected.
January 2nd, 2015, 01:20 PM
Yes, I thought about that solution but the problem is that NM_CLICK detects any click anywhere in the treeview not only on the items.
How to know if the user clicked on the same item and not just...
January 2nd, 2015, 12:15 PM
January 2nd, 2015, 11:56 AM
That's right, that makes sense. Thank you Kaud!
So is there a message for an item clicked whether it changed or not?
January 2nd, 2015, 11:01 AM
I want to get a notification when I click again the same treeview item and also want to get the item's name again.
I get the notification but my GetTextItemTree() function not returning...
January 2nd, 2015, 08:14 AM
I have this code that uses the ISampleGrabber interface.
When I look up the methods of ISampleGrabber I cannot find the CoCreateInstance method?
Why is that?
December 28th, 2014, 10:30 AM
OK, so I can drop it, thanks Igor!
December 28th, 2014, 06:57 AM
I am converting an MFC program to a Win32 program.
I got stuck at the DDX_Control function.
How to convert the DDX_Control function to a WinAPI function?
December 25th, 2014, 12:49 PM
December 25th, 2014, 08:42 AM
Great explanation, thanks!
I have crossbar.h and these declarations in it. Should it be in caps?
December 25th, 2014, 07:14 AM
I'm trying to compile the Directshow example amcap without the MSVC IDE and I think I have a circular dependency problem.
I looked it up on Wikipedia but I dont know what 'A_H' means and what is...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!