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

C / C++ / MFC

 
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 
AnswerRe: How to destroy Array of Controls Pin
NormDroid19-Oct-01 23:48
professionalNormDroid19-Oct-01 23:48 
In your header...

typedef CList<cbutton*, cbutton*=""> ButtonList;


class CYourDialog or CWindow.....
{
ButtonList m_listButtons;


}

and when you create the buttons in your cpp implementation file...

m_listButtons.AddTail(pCon1)
m_listButtons.AddTail(pCon2)
... etc

and when your ready to delete the buttons, preferrable as the window/dialog is closing..


while (!m_listButtons.IsEmpty())
delete m_listButtons.RemoveTail();



Normski - Windows Professional Programmer
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 
GeneralRe: Bidirectional communication between classes Pin
Christian Graus21-Oct-01 14:02
protectorChristian Graus21-Oct-01 14:02 

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.