Pelles C forum

C language => Windows questions => Topic started by: DMac on December 04, 2009, 02:03:24 AM

Title: Property list box
Post by: DMac on December 04, 2009, 02:03:24 AM
Does anyone have an example of an owner draw list box such as the one Pelle uses in the resource editor?
The only examples I have been able to find are MFC based and I suspect that adapting them would not yield very elegant or straight forward code.  In fact Pelle's owner drawn list box is the cleanest looking control I've seen.
I checked the "Source Code > Windows Programming" section on Smorgasbordet to see if Pelle might have included an example there but no luck.
Any suggestions or examples would be greatly appreciated.
Thanks,
DMac
Title: Re: Property list box
Post by: Stefan Pendl on December 04, 2009, 01:10:36 PM
Did you already take a look at the site of JohnF?
Title: Re: Property list box
Post by: MrBcx on December 04, 2009, 04:12:11 PM
Quote from: Stefan Pendl on December 04, 2009, 01:10:36 PM
Did you already take a look at the site of JohnF?

Stephan - I was curious about this subject, so I looked on John's site but didn't find anything.

Please supply a link to the file on John's site that you found.

Title: Re: Property list box
Post by: Stefan Pendl on December 04, 2009, 04:34:31 PM
Quote from: MrBcx on December 04, 2009, 04:12:11 PM
Stephan - I was curious about this subject, so I looked on John's site but didn't find anything.

Please supply a link to the file on John's site that you found.

I have not found a file there, I have just suggested to look there.

It might be included in one of his examples too, if he uses such a list box.
Title: Re: Property list box
Post by: DMac on December 04, 2009, 04:48:02 PM
Quote from: Stefan Pendl on December 04, 2009, 01:10:36 PM
Did you already take a look at the site of JohnF?

Yes, as a matter of fact I looked at both the LCC and Pelles C sections.

I have found one MFC example that is up to par with the properties listbox used in the Pelles C IDE,  I may have to work from that after all.