Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: need help in program Pin
David Crow7-Feb-06 8:25
David Crow7-Feb-06 8:25 
GeneralRe: need help in program Pin
Maximilien7-Feb-06 9:39
Maximilien7-Feb-06 9:39 
GeneralRe: need help in program Pin
taurus7777-Feb-06 10:23
taurus7777-Feb-06 10:23 
GeneralRe: need help in program Pin
Nitron7-Feb-06 10:41
Nitron7-Feb-06 10:41 
GeneralRe: need help in program Pin
Wim Engberts7-Feb-06 22:22
Wim Engberts7-Feb-06 22:22 
GeneralRe: need help in program Pin
beko7-Feb-06 23:54
beko7-Feb-06 23:54 
GeneralRe: need help in program Pin
taurus7778-Feb-06 5:13
taurus7778-Feb-06 5:13 
QuestionListBox Pin
Mike Winter7-Feb-06 5:42
Mike Winter7-Feb-06 5:42 
Hi again

I am embarrassed to ask this question, but hey, if you dont ask, you dont get to know...

I have an application written by others that generates an Edit Box by using the following code:

HWND hwndEdit;
hwndEdit = CreateWindowEx(WS_EX_CLIENTEDGE, _T("EDIT"), "",
WS_CHILD|WS_VISIBLE|WS_TABSTOP,
20,25,200,23,
hWnd, NULL, hInstance, NULL);

I now want to add to the program by including a ListBox. Can I do this by:

HWND hwndList;
hwndList = CreateWindowEx(WS_EX_CLIENTEDGE, _T("LISTBOX"), "",
WS_CHILD|WS_VISIBLE|WS_TABSTOP,
20,25,200,23,
hWnd, NULL, hInstance, NULL);

(changing the co-ords, of course)
This does appear to work, but I cant work out how to add strings to the ListBox - can anyone help, or show me what I am doing wrong

Thanks for any help that you can give to a newbie!

Mike





AnswerRe: ListBox Pin
Blake Miller7-Feb-06 6:06
Blake Miller7-Feb-06 6:06 
GeneralRe: ListBox Pin
Mike Winter7-Feb-06 6:20
Mike Winter7-Feb-06 6:20 
Questiontemplates Pin
Russell'7-Feb-06 4:37
Russell'7-Feb-06 4:37 
AnswerRe: templates Pin
toxcct7-Feb-06 4:49
toxcct7-Feb-06 4:49 
GeneralRe: templates Pin
Russell'7-Feb-06 4:57
Russell'7-Feb-06 4:57 
GeneralRe: templates Pin
toxcct7-Feb-06 5:03
toxcct7-Feb-06 5:03 
GeneralRe: templates Pin
Russell'7-Feb-06 5:24
Russell'7-Feb-06 5:24 
GeneralRe: templates Pin
toxcct7-Feb-06 5:27
toxcct7-Feb-06 5:27 
AnswerRe: templates Pin
BadKarma7-Feb-06 4:56
BadKarma7-Feb-06 4:56 
GeneralRe: templates Pin
Russell'7-Feb-06 5:20
Russell'7-Feb-06 5:20 
GeneralRe: templates Pin
BadKarma7-Feb-06 5:48
BadKarma7-Feb-06 5:48 
AnswerRe: templates Pin
Michael Dunn7-Feb-06 7:17
sitebuilderMichael Dunn7-Feb-06 7:17 
QuestionActiveX with Visual Studio 6.0 Pin
MrChefman7-Feb-06 4:28
MrChefman7-Feb-06 4:28 
AnswerRe: ActiveX with Visual Studio 6.0 Pin
Anilkumar K V7-Feb-06 18:27
Anilkumar K V7-Feb-06 18:27 
GeneralRe: ActiveX with Visual Studio 6.0 Pin
MrChefman7-Feb-06 22:39
MrChefman7-Feb-06 22:39 
QuestionSDI with multiple document templates Pin
mark gooding7-Feb-06 4:23
mark gooding7-Feb-06 4:23 
AnswerRe: SDI with multiple document templates Pin
mark gooding7-Feb-06 23:27
mark gooding7-Feb-06 23:27 

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.