Type: Posts; User: MasterDucky
Search took 0.03 seconds.
December 3rd, 2015, 11:40 AM
Ah, OK I understand now, thanks!
December 1st, 2015, 02:47 AM
I dont do it on purpose. Im using GetDC(myBox); which you can use outside of WM_PAINT.
November 27th, 2015, 07:30 AM
I loaded a bmp picture and Id like to draw over it. The image is loaded but the text wont get drawn on it. I posted the code, what am I doing wrong?
September 28th, 2015, 02:21 AM
September 25th, 2015, 04:32 AM
Thank you Kaud!
I managed to read other REG_DWORD values by modifying the code with the help of your link but this specific key returns me 0.
Edit: but on another machine its working so it must...
September 25th, 2015, 01:22 AM
I can read REG_SZ values but not REG_DWORD values from the registry.
Do I need another type than char* as 5th parameter of the RegQueryValueEx() function if I want to read REG_DWORD value...
September 13th, 2015, 03:29 AM
OK, I found out how to debug threads. :)
September 13th, 2015, 02:33 AM
OK, the crash is occurring in the "void Get_Column_Info()" function that I call by the thread "std::thread Column_Info_Thread(Get_Column_Info);".
But when I try to step into this thread by F11 to...
September 13th, 2015, 01:34 AM
Thank you Victor, the Call stack window shows:
> user32.dll!_InternalCallWinProc@20() Unknown
Call before: VisualStudioDebug.exe!MainWndProc(HWND__ * hwnd, unsigned int uMsg, unsigned...
September 12th, 2015, 03:16 PM
Im trying to debug a Win32 visual program because I have a "invalid pointer crash" but I cannot find it where because stepping over with F10 at a certain point debugging just stops and I cant...
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.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!