Deleting a CStatic object
-
how to delete a CStatic Object. wt is the correct function? wts the syntax and parameters needed???
-
how to delete a CStatic Object. wt is the correct function? wts the syntax and parameters needed???
SteamEngine wrote:
delete a CStatic Object
A CStatic object created on the stack within a window is automatically destroyed. If you create the CStatic object on the heap by using new , you must call delete on the object to destroy it when you are done with it. delete myObj; DestroyWindow(); To destroy a C++ Windows object, use DestroyWindow, not "delete". -- modified at 7:07 Monday 31st July, 2006
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
how to delete a CStatic Object. wt is the correct function? wts the syntax and parameters needed???
SteamEngine wrote:
how to delete a CStatic Object. wt is the correct function? wts the syntax and parameters needed???
how did you created it~!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
SteamEngine wrote:
delete a CStatic Object
A CStatic object created on the stack within a window is automatically destroyed. If you create the CStatic object on the heap by using new , you must call delete on the object to destroy it when you are done with it. delete myObj; DestroyWindow(); To destroy a C++ Windows object, use DestroyWindow, not "delete". -- modified at 7:07 Monday 31st July, 2006
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
_AnShUmAn_ wrote:
f you create the CStatic object on the heap by using new , you must call delete on the object to destroy it when you are done with it. delete myObj;
naah you have to call delete MyObj after DestroyWindow()
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You