Click here to Skip to main content
16,004,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: *** Multiple Client Socket in MFC *** Pin
Salman Ahmad Khan20-Oct-01 1:10
Salman Ahmad Khan20-Oct-01 1:10 
GeneralRe:First, learn TCP/IP! Pin
Masaaki Onishi20-Oct-01 11:51
Masaaki Onishi20-Oct-01 11:51 
GeneralRe: *** Multiple Client Socket in MFC *** Pin
20-Oct-01 12:38
suss20-Oct-01 12:38 
QuestionFor learning c++, which one will be you choice? Pin
flying20-Oct-01 0:05
flying20-Oct-01 0:05 
AnswerRe: For learning c++, which one will be you choice? Pin
NormDroid20-Oct-01 0:37
professionalNormDroid20-Oct-01 0:37 
GeneralLooking support for c++ in Linux Pin
Gaurav Lambole20-Oct-01 0:01
Gaurav Lambole20-Oct-01 0:01 
GeneralRe: Looking support for c++ in Linux Pin
markkuk21-Oct-01 19:47
markkuk21-Oct-01 19:47 
QuestionHow to destroy Array of Controls Pin
19-Oct-01 21:24
suss19-Oct-01 21:24 
I have to give a data tip on every record(each recod contains three points) on mygraph.For this i am creating
Button controls for every point in for loop as like



MyFuntion(){
for(firstrecord,somerecords(nearly25),lastrecord)
{
CButton *pCon=new CButton;//start point
CButton *pCon1=new CButton;//peak point
CButton *pCon2=new CButton;//end point

pCon.Create(_TEXT(""),WS_VISIBLE|BS_FLAT,CRect,this,Number)

pCon1.Create(_TEXT(""),WS_VISIBLE|BS_FLAT,CRect,this,Number)


pCon2.Create(_TEXT(""),WS_VISIBLE|BS_FLAT,CRect,this,Number)

m_datatip.AddTip(Text,pCon,Number);
m_datatip.AddTip(Text,pCon1,Number);
m_datatip.AddTip(Text,pCon2,Number);

}
}


I am calling this function from OnPaint.
For very first this code is working exactly.When ever
i am calling this function next time the controls not destroying.

I used "delete [] control" ,"delete control" in various places in my function and i didn't get the solution.

Please help me ,
Where can I delete these created controls for callling the Myfunction next time.Rose | [Rose]
AnswerRe: How to destroy Array of Controls Pin
NormDroid19-Oct-01 23:48
professionalNormDroid19-Oct-01 23:48 
GeneralRe: How to destroy Array of Controls Pin
21-Oct-01 19:10
suss21-Oct-01 19:10 
GeneralRe: How to destroy Array of Controls Pin
21-Oct-01 19:58
suss21-Oct-01 19:58 
GeneralRe: How to destroy Array of Controls Pin
22-Oct-01 8:30
suss22-Oct-01 8:30 
GeneralRe:Thanks Pin
24-Oct-01 20:18
suss24-Oct-01 20:18 
QuestionHOW TO CHANGE THE IP ADDRESS?? Pin
Daniel Visan19-Oct-01 21:17
Daniel Visan19-Oct-01 21:17 
General_DEBUG macro Pin
parag19-Oct-01 20:04
parag19-Oct-01 20:04 
GeneralResize a View to match the frame Pin
19-Oct-01 16:13
suss19-Oct-01 16:13 
GeneralCTreeCtrl Question Pin
Vu Nguyen19-Oct-01 14:47
Vu Nguyen19-Oct-01 14:47 
GeneralRe: CTreeCtrl Question Pin
Michael Dunn19-Oct-01 16:02
sitebuilderMichael Dunn19-Oct-01 16:02 
GeneralBidirectional communication between classes Pin
jangel19-Oct-01 13:28
jangel19-Oct-01 13:28 
GeneralRe: Bidirectional communication between classes Pin
Christian Graus19-Oct-01 14:53
protectorChristian Graus19-Oct-01 14:53 
GeneralRe: Bidirectional communication between classes Pin
21-Oct-01 12:54
suss21-Oct-01 12:54 
GeneralRe: Bidirectional communication between classes Pin
Christian Graus21-Oct-01 13:03
protectorChristian Graus21-Oct-01 13:03 
GeneralRe: Bidirectional communication between classes Pin
21-Oct-01 13:21
suss21-Oct-01 13:21 
GeneralRe: Bidirectional communication between classes Pin
Christian Graus21-Oct-01 13:30
protectorChristian Graus21-Oct-01 13:30 
GeneralRe: Bidirectional communication between classes Pin
21-Oct-01 13:52
suss21-Oct-01 13:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.