jadhav123 wrote:
Static myStatic; myStatic.Create(_T("my static"), WS_CHILD|WS_VISIBLE|SS_CENTER, CRect(15,15,150,50), this);
it is not created because, as soon as OnInitDialog function Exit, scope of MyStatic variable will end which inturn destory the object.. Now if you want to see Your Dynamically created Static Box you have to decalre CStatic variable as global or as classmember, so ity lifetime is that of program :)
"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