Click here to Skip to main content
15,913,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing compiler falgs /Preprocessors from the command line Pin
Mohamed Douffir27-Aug-07 7:11
Mohamed Douffir27-Aug-07 7:11 
GeneralRe: Passing compiler falgs /Preprocessors from the command line Pin
jhwurmbach27-Aug-07 7:18
jhwurmbach27-Aug-07 7:18 
AnswerRe: Passing compiler falgs /Preprocessors from the command line Pin
David Crow27-Aug-07 7:15
David Crow27-Aug-07 7:15 
QuestionHelp needed related to Genetic algorithm in image recognition Pin
rayluee27-Aug-07 5:49
rayluee27-Aug-07 5:49 
AnswerRe: Help needed related to Genetic algorithm in image recognition Pin
jhwurmbach27-Aug-07 6:01
jhwurmbach27-Aug-07 6:01 
GeneralRe: Help needed related to Genetic algorithm in image recognition Pin
rayluee27-Aug-07 6:54
rayluee27-Aug-07 6:54 
GeneralRe: Help needed related to Genetic algorithm in image recognition Pin
jhwurmbach27-Aug-07 7:08
jhwurmbach27-Aug-07 7:08 
QuestionHow do you traverse, or loop through the controls Pin
littleGreenDude27-Aug-07 5:35
littleGreenDude27-Aug-07 5:35 
How do you traverse, or loop through the controls on the dialog?

The problem I have is that I have a spreadsheet control on a dialog, and when the dialog opens, the spreadsheet control is loaded before the header information is displayed. I thought I could grab the indexes for the controls located in the header and loop thru them to implicitly show them before loading the sheet.

for(int lcv = IDC_VENDID; lcv <= IDC_BTNHEADDOWN; lcv++)<br />
{<br />
    GetDlgItem(lcv)->ShowWindow(SW_SHOW);<br />
}



The problem with this approach is that the control indexes aren't sequential, and an exception is thrown when lcv hits a value that references nothing (its not really nothing its a control id for another dialog).
AnswerRe: How do you traverse, or loop through the controls Pin
led mike27-Aug-07 5:42
led mike27-Aug-07 5:42 
GeneralRe: How do you traverse, or loop through the controls Pin
littleGreenDude27-Aug-07 5:57
littleGreenDude27-Aug-07 5:57 
GeneralRe: How do you traverse, or loop through the controls Pin
led mike27-Aug-07 6:36
led mike27-Aug-07 6:36 
AnswerRe: How do you traverse, or loop through the controls Pin
jhwurmbach27-Aug-07 5:49
jhwurmbach27-Aug-07 5:49 
GeneralRe: How do you traverse, or loop through the controls Pin
littleGreenDude27-Aug-07 6:05
littleGreenDude27-Aug-07 6:05 
QuestionRe: How do you traverse, or loop through the controls Pin
David Crow27-Aug-07 6:01
David Crow27-Aug-07 6:01 
AnswerRe: How do you traverse, or loop through the controls Pin
littleGreenDude27-Aug-07 6:09
littleGreenDude27-Aug-07 6:09 
QuestionRe: How do you traverse, or loop through the controls Pin
David Crow27-Aug-07 6:18
David Crow27-Aug-07 6:18 
AnswerRe: How do you traverse, or loop through the controls Pin
littleGreenDude27-Aug-07 7:48
littleGreenDude27-Aug-07 7:48 
GeneralRe: How do you traverse, or loop through the controls Pin
David Crow27-Aug-07 8:25
David Crow27-Aug-07 8:25 
AnswerRe: How do you traverse, or loop through the controls Pin
Stephen Hewitt27-Aug-07 18:32
Stephen Hewitt27-Aug-07 18:32 
QuestionPDA communication Pin
Waldermort27-Aug-07 5:34
Waldermort27-Aug-07 5:34 
GeneralRe: PDA communication Pin
Matthew Faithfull27-Aug-07 8:04
Matthew Faithfull27-Aug-07 8:04 
Questionpointer on char array Pin
baerten27-Aug-07 3:35
baerten27-Aug-07 3:35 
AnswerRe: pointer on char array Pin
David Crow27-Aug-07 3:41
David Crow27-Aug-07 3:41 
GeneralRe: pointer on char array Pin
baerten27-Aug-07 4:03
baerten27-Aug-07 4:03 
GeneralRe: pointer on char array Pin
David Crow27-Aug-07 4:39
David Crow27-Aug-07 4:39 

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.