Click here to Skip to main content
15,889,860 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Universal Progress Dialog Pin
BuckBrown21-Feb-07 5:35
BuckBrown21-Feb-07 5:35 
GeneralRe: Universal Progress Dialog Pin
Stephen Hewitt21-Feb-07 11:56
Stephen Hewitt21-Feb-07 11:56 
QuestionMultiple list boxes in main window Pin
Demosthenes Tecumseh20-Feb-07 10:55
Demosthenes Tecumseh20-Feb-07 10:55 
AnswerRe: Multiple list boxes in main window Pin
PJ Arends20-Feb-07 11:46
professionalPJ Arends20-Feb-07 11:46 
GeneralRe: Multiple list boxes in main window Pin
Demosthenes Tecumseh20-Feb-07 12:10
Demosthenes Tecumseh20-Feb-07 12:10 
JokeRe: Multiple list boxes in main window Pin
Mark Salsbery20-Feb-07 12:41
Mark Salsbery20-Feb-07 12:41 
AnswerRe: Multiple list boxes in main window Pin
Stephen Hewitt20-Feb-07 12:43
Stephen Hewitt20-Feb-07 12:43 
GeneralRe: Multiple list boxes in main window Pin
Demosthenes Tecumseh20-Feb-07 13:44
Demosthenes Tecumseh20-Feb-07 13:44 
Here is the function:
void CRatiosWin::InitializeVariables()
{
SetFilePath("");
SetTimeParameterStatus(false);
SetFilePathStatus(false);
CListBox* listPtr = new CListBox();
listPtr->Create(WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_HSCROLL,CRect(0,0,400,400),this,IDC_LIST);
CListBox* listPtr2 = new CListBox();
listPtr2->Create(WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_HSCROLL,CRect(410,0,800,400),this,IDC_LIST);
fstream infile;
infile.open("VariableNames.txt",ios::in);
string var_name, rType;
VariableStringsListLength = 0;
while(infile>>var_name>>rType)
{
VariableStringsList[VariableStringsListLength++] = new CRatiosVariableStrings(var_name,rType);
}
}


If I make only one list box, it works fine, but if I add a second one, it screws up.
GeneralRe: Multiple list boxes in main window Pin
PJ Arends20-Feb-07 15:29
professionalPJ Arends20-Feb-07 15:29 
AnswerRe: Multiple list boxes in main window Pin
Demosthenes Tecumseh20-Feb-07 14:01
Demosthenes Tecumseh20-Feb-07 14:01 
QuestionMemory Allocation/Deallocation issues?? Pin
pavanbabut20-Feb-07 9:42
pavanbabut20-Feb-07 9:42 
AnswerRe: Memory Allocation/Deallocation issues?? Pin
Mark Salsbery20-Feb-07 10:05
Mark Salsbery20-Feb-07 10:05 
AnswerRe: Memory Allocation/Deallocation issues?? Pin
Blake Miller20-Feb-07 10:21
Blake Miller20-Feb-07 10:21 
GeneralRe: Memory Allocation/Deallocation issues?? Pin
pavanbabut20-Feb-07 11:40
pavanbabut20-Feb-07 11:40 
AnswerRe: Memory Allocation/Deallocation issues?? Pin
Mark Salsbery20-Feb-07 12:17
Mark Salsbery20-Feb-07 12:17 
GeneralRe: Memory Allocation/Deallocation issues?? Pin
pavanbabut20-Feb-07 13:21
pavanbabut20-Feb-07 13:21 
AnswerRe: Memory Allocation/Deallocation issues?? Pin
Maximilien20-Feb-07 13:37
Maximilien20-Feb-07 13:37 
GeneralRe: Memory Allocation/Deallocation issues?? Pin
pavanbabut20-Feb-07 13:41
pavanbabut20-Feb-07 13:41 
Question[Message Deleted] Pin
Anil K P20-Feb-07 7:48
Anil K P20-Feb-07 7:48 
AnswerRe: Get Background color of an active wondow in MFC program Pin
David Crow20-Feb-07 7:52
David Crow20-Feb-07 7:52 
QuestionRe: Get Background color of an active wondow in MFC program Pin
Mark Salsbery20-Feb-07 8:02
Mark Salsbery20-Feb-07 8:02 
AnswerRe: Get Background color of an active wondow in MFC program Pin
toxcct20-Feb-07 8:47
toxcct20-Feb-07 8:47 
GeneralMigration VC++ Pin
world.wild.web20-Feb-07 7:41
world.wild.web20-Feb-07 7:41 
GeneralRe: Migration VC++ Pin
Mark Salsbery20-Feb-07 8:08
Mark Salsbery20-Feb-07 8:08 
GeneralRe: Migration VC++ Pin
Hamid_RT20-Feb-07 18:30
Hamid_RT20-Feb-07 18:30 

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.