|
PostMessage(WM_SYSCOMMAND,SC_CLOSE,0);
Best Wishes,
-David Delaune
|
|
|
|
|
Thank you very much.
It seems like all crazy bugs are gone.
|
|
|
|
|
Hanan888 wrote: ::SendMessage(hWnd, WM_DESTROY, NULL, NULL);
Don't do that! That doesn't destroy a window
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks.
I Really shouldn't post
::SendMessage(hWnd, WM_DESTROY, NULL, NULL);
as a real candidate.
I was pretty desperate when I posted that message...
|
|
|
|
|
hehe the last act of a desperate programmer
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
"He got sick of it. Sick of life, sick of people, sick of Win32. Desperate and dispirited, he code ::SendMessage(hWnd, WM_DESTROY, NULL, NULL); . And I can tell you this: whatever it does, it doesn't destroy a window..."
|
|
|
|
|
Excellent!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: Don't do that! That doesn't destroy a window
Opps, let me check how many windows has been destroyed by me till date!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
Huh? What are you talking about Alok?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello
I am looking for a graphing library simalar in look/functionality to MSAGL (previously called GLEE, see:
http://research.microsoft.com/research/msagl/[^]) for a project being developed in c++.
The problem with using MSAGL/GLEE is that it is written in c# for .net and I require a native c++ library which i can link into an existing project under development (build enviroment is borland turbo c++).
Can anybody recomend anything?
Many thanks in advance
J
|
|
|
|
|
on top of my head, maybe GraphViz can do that ?
|
|
|
|
|
Hello All,
Is there any way to restricting a class to be inherited? I dont want any one to inherit my class. I feel this can be possible only by making the constructor in private. Is there any other way to do this?
Regards
Kihore
|
|
|
|
|
I think there is no way (other to switch to .NET programming).
But do you really need such a feature?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Kishore JP wrote: Is there any other way to do this?
A private constructor is the only way that I know of.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Yep.
Only restricting access to the members using the private keyword will cause an impediment to use it as base classe because the private members of the base class are unavailable in the derivates.
There's not a sealed attribute in C++.
Demian.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."
-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
|
|
|
|
|
1. Private constructor to restrict inheritance.
2. Pure virtual member function to restrict object instantiation.
That's all I know.
Maxwell Chen
|
|
|
|
|
You have the technical answers but are you sure you are applying this where needed?
Kishore JP wrote: I dont want any one to inherit my class.
any one? Who are these people?
led mike
|
|
|
|
|
I guess that the OP is making a DLL or something which exports classes ...
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: I guess that the OP is making a DLL or something which exports classes
So exported classes should not be inheritable? I never knew that.
led mike
|
|
|
|
|
led mike wrote: So exported classes should not be inheritable? I never knew that.
The OP's preference.
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: The OP's preference.
Ah, now I understand, it's the developers preference that is used as criteria to determine that a class should not be inheritable. I never knew that.
led mike
|
|
|
|
|
|
"Yes, but why do you want to?"
Thank you, sometimes it's like talking into space, devoid of logic and reason around here.
Last modified: after originally posted -- wow I butchered that post
led mike
|
|
|
|
|
some thing like singleton class will do! old c++ still awaiting sealed class keyword
"If it were machines, the pair_programming seem to work, but for humans it is pair_crackdown that seems to work! " - Nisamudheen
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|