Click here to Skip to main content
16,009,598 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Writing HTML to file Pin
Rafael Fernández López4-May-04 10:12
Rafael Fernández López4-May-04 10:12 
GeneralRe: Writing HTML to file Pin
Joe Woodbury4-May-04 10:12
professionalJoe Woodbury4-May-04 10:12 
GeneralRe: Writing HTML to file Pin
toxcct4-May-04 10:18
toxcct4-May-04 10:18 
GeneralRe: Writing HTML to file Pin
David Crow4-May-04 10:12
David Crow4-May-04 10:12 
GeneralRe: Writing HTML to file Pin
toxcct4-May-04 10:22
toxcct4-May-04 10:22 
GeneralCToolBarCtrl, ¡¡ Help, please !! Pin
Rafael Fernández López4-May-04 9:08
Rafael Fernández López4-May-04 9:08 
GeneralRe: CToolBarCtrl, ¡¡ Help, please !! Pin
Rafael Fernández López4-May-04 10:08
Rafael Fernández López4-May-04 10:08 
GeneralFilling a child window in a dialog box dynamically Pin
cscafidi4-May-04 8:47
cscafidi4-May-04 8:47 
Hi all! I had a question concerning visual c++ 6.0. I'm coding a card game in Win32 (no MFC) and am trying to fill an edit box on a dialog window dynamically with child controls. What the program does is it queries the current directory for all sound (.wav) files and, for each sound file, inserts three child controls in the edit box on one line. The controls are, from left to right, an edit box for the caption the user wants for this sound file, a play button to listen to the sound, and a second edit box for the name of the sound file.

I'm inserting these into an edit box because, since the sound list is obviously dynamic and of arbitrary length, I'd like to utilize the scroll bar on the edit box. The problem I'm running into is that the edit box is unaware of anything being added to it. I'm calling CreateWindow to add these controls to the edit box, with the handle to the edit box as the parent parameter, and the lines of child controls for the sound files fill up past the depth of the edit box without the scroll bar being activated.

One solution I tried was to insert a newline character into the edit box for each line of controls I added. This solved the scroll bar problem, but when you scroll the edit box the display gets really confused as to what to display (the controls or the "\n").

Any advice is GREATLY appreciated.
Confused | :confused:

Carl Scafidi
GeneralRe: Filling a child window in a dialog box dynamically Pin
David Crow4-May-04 9:05
David Crow4-May-04 9:05 
GeneralRe: Filling a child window in a dialog box dynamically Pin
cscafidi4-May-04 9:47
cscafidi4-May-04 9:47 
GeneralRe: Filling a child window in a dialog box dynamically Pin
David Crow4-May-04 10:01
David Crow4-May-04 10:01 
GeneralRe: Filling a child window in a dialog box dynamically Pin
cscafidi4-May-04 9:49
cscafidi4-May-04 9:49 
GeneralRe: Filling a child window in a dialog box dynamically Pin
Rafael Fernández López4-May-04 10:02
Rafael Fernández López4-May-04 10:02 
Generaloverloading operator >> Pin
kfaday4-May-04 8:39
kfaday4-May-04 8:39 
GeneralRe: overloading operator >> Pin
Joaquín M López Muñoz4-May-04 10:31
Joaquín M López Muñoz4-May-04 10:31 
GeneralRe: overloading operator >> Pin
kfaday4-May-04 11:01
kfaday4-May-04 11:01 
GeneralRe: overloading operator >> Pin
Joaquín M López Muñoz4-May-04 11:17
Joaquín M López Muñoz4-May-04 11:17 
GeneralRe: overloading operator >> Pin
kfaday4-May-04 11:38
kfaday4-May-04 11:38 
GeneralRe: overloading operator >> Pin
Joaquín M López Muñoz4-May-04 11:51
Joaquín M López Muñoz4-May-04 11:51 
GeneralRe: overloading operator >> Pin
kfaday4-May-04 12:43
kfaday4-May-04 12:43 
GeneralSMS Connector to GSM Server ... Pin
rasha20034-May-04 7:59
rasha20034-May-04 7:59 
GeneralRe: SMS Connector to GSM Server ... Pin
toxcct4-May-04 8:24
toxcct4-May-04 8:24 
GeneralRe: SMS Connector to GSM Server ... Pin
rasha20034-May-04 20:05
rasha20034-May-04 20:05 
Generaldialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 7:34
jonathanleebrown4-May-04 7:34 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
David Crow4-May-04 8:23
David Crow4-May-04 8:23 

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.