|
|
Thanks, I fixed the problem
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Hi everyone,
When i draw to the screen by desktop DC, it is removed when desktop window needs repainting. I know it's what it have to be but i need some way to make my drawings permanent. How can i make my code notified when desktop window is repainting. Thank you for suggestions...
|
|
|
|
|
Does responding to WM_SETTINGCHANGE help?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I tried it now, but it doesn't...
|
|
|
|
|
Drawing to a window and expecting the changes to "stick" goes against the Win32 drawing model: you have to respond to WM_PAINT messages to get to make the changes permanent. Responding to WM_PAINT can only occur withing the process that manages the desktop. A better approach would be to use window with the WS_EX_TRANSPARENT[^] extended style set or use Layered Windows[^].
Steve
|
|
|
|
|
It seems it's better than hooking stuff. I'll give a try. Thank you...
|
|
|
|
|
Hi friends
I need help.
I need to develop dll in c++ that firing events to c# application.
any idea?
cheers!
|
|
|
|
|
What events can you more explain?
|
|
|
|
|
any events, like counting and every time it mod by 20 Reaise an event.
|
|
|
|
|
May be use SendMessage/PostMessage?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
How is the C# app listening for these "events"?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Probably with a couple tin cans and a string.
led mike
|
|
|
|
|
You are FAST!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: You are FAST!
Of course! How many lines of code you can write in a day is the most important attribute of a developer!
Wow, I haven't cracked myself up for a long time!
led mike
|
|
|
|
|
Thanks guy
I have found http://www.codeguru.com/csharp/.net/net_general/patterns/article.php/c8381
|
|
|
|
|
|
Hello,
I have created a dialog using Visual C++ 2005. On the dialog are 2 group boxes and 2 ActiveX controls. How do I change the tab ordering of these objects? I have found the Layout toolbar, which contains the Tab Order button, but I don't know how to enable this button. Any help is appreciated.
Regards,
Mike
|
|
|
|
|
If you want to set Tab Order on the dialog forum you must be press Ctrl+D.
|
|
|
|
|
This was the answer I was looking for, thank you.
Regards,
Mike
|
|
|
|
|
mla154 wrote: This was the answer I was looking for
but it wasn't full anyway.
I maintain that Hamid's solution, such as the menu item you found will only work in the Resource ("Layout") Editor...
|
|
|
|
|
I appreciate everyone's responses anyway. I understand now that the user must have the Resource Editor open and then press Ctrl-D.
Regards,
Mike
|
|
|
|
|
you have to be in the "layout editor" to have it enabled
|
|
|
|
|
mla154 wrote:
I have created a dialog using Visual C++ 2005. On the dialog are 2 group boxes and 2 ActiveX controls. How do I change the tab ordering of these objects? I have found the Layout toolbar, which contains the Tab Order button, but I don't know how to enable this button. Any help is appreciated.
This works in the resource editor.
|
|
|
|
|
Hello,
If I have the following code,
<br />
#include <iostream> <br />
<br />
int main()<br />
{<br />
int y = 6;<br />
int *ptr;<br />
ptr = &y;<br />
<br />
int x = 7;<br />
<br />
ptr = &x;<br />
<br />
x = 8;<br />
std::cout << "hi";<br />
std::cout << "hello";<br />
return 0;<br />
}<br />
is there a way to somehow change the break point properties so that it will stop where ptr changes from &y to &x ? The reason I wish to know this is lets say I have a massive call stack and somewhere in there my pointer is modified, I wish to locate this position in the stack then by setting a break point where the properties of my pointer change.
The platform I am using is visual studio .NET. I believe it is possible to do this in visual studion 6 C++ but I am unsure how to do this in visual studio .NET.
Thanks for any input.
|
|
|
|