Problems with List box in dynamically created dialog box 
Author Message
 Problems with List box in dynamically created dialog box

In my MFC-app I create a dialog box template in memory,
and use InitModalIndirect to initialize the dialog box.

This works fine for all controls except the List box. Even
though everything indicates that the list box is accepting
my strings, they don't show up in the list when I add them using
AddString.

The returned index is correct, and when I test the GetCount
function of the list box it returns the correct number. THE
STRINGS JUST DOESN'T SHOW UP IN THE LIST.

I must admit I'm very puzzled. I thought it might have to do
with how I add the list box to my template. I use the combination
of 0xFFFF and 0x0083 to indicate the list box class, and the
following style:

WS_CHILD | WS_BORDER | WS_GROUP | WS_TABSTOP | WS_VISIBLE |
LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | LBS_NOTIFY | DS_3DLOOK

I can not find any peculiarities here, so I am wondering whether
MFC is doing some strange initialisation of the list boxes that
I am unaware of.

I'd be thankful for any response

P?l K. T?nder



Fri, 03 Dec 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Problems with List box in dynamically created dialog box

2. dynamically modifying a dialog list box

3. i cannot add an item to my list box that is located within my dialog box

4. List boxes in Modal Dialog Box

5. Disabling editing of list box items in the file open dialog box

6. Transfer of data from an edit box in one dialog box to a list box in another dialog box II

7. Modeless dialog box together with modal dialog box

8. Q: how to put a drop down in a list box dynamically

9. activating a button on a dialog box from a dialog box

10. problem creating dialog box

11. Dialog box in a dialog box

12. transfer data from one dialog box to another dialog box

 

 
Powered by phpBB® Forum Software