Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Here is a code snippet:

int xDim = 0;
int width = SOUND_CAPTION_BOX_WIDTH * cxChar;

//SendMessage(hList,EM_SETLINE,int((idx - SND_FILE_LIST_OFFSET)/HWNDS_PER_SOUND),(LPARAM)TEXT("\n"));

SendMessage(hList,LB_INSERTSTRING, 0, (LPARAM)TEXT("\n\n"));

captionRef = CreateWindowEx(
WS_EX_CLIENTEDGE,
"EDIT",
NULL,
//WS_CHILD | WS_VISIBLE | WS_BORDER | ES_LEFT | WS_THICKFRAME,
WS_CHILD | WS_VISIBLE | ES_LEFT,
xDim,
yDim,
width,
cyBox,
hList,
(HMENU)idx,
hInstance,
NULL);
SetWindowText(captionRef,caption);
idx++;
numActiveSoundChildWindows++;

xDim += width;
width = SOUND_PLAY_BTN_WIDTH * cxChar;
playBtnRef = CreateWindow(TEXT("button"),
TEXT(" PLAY "),
WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,
xDim,
yDim,
width,
cyBox,
hList,
(HMENU)idx,
hInstance,
NULL);
idx++;
numActiveSoundChildWindows++;

xDim += width;
width = SOUND_FILE_NAME_BOX_WIDTH * cxChar;
fileNameRef = CreateWindowEx(
WS_EX_CLIENTEDGE,
"EDIT",
NULL,
WS_CHILD | WS_VISIBLE | ES_LEFT,
xDim,
yDim,
width,
cyBox,
hList,
(HMENU)idx,
hInstance,
NULL);
SetWindowText(fileNameRef,fileName);
idx++;
numActiveSoundChildWindows++;

yDim += cyBox;

the 'hList' is the handle to the edit box.
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 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 8:32
jonathanleebrown4-May-04 8:32 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
David Crow4-May-04 8:42
David Crow4-May-04 8:42 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 9:20
jonathanleebrown4-May-04 9:20 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 9:30
jonathanleebrown4-May-04 9: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.