15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


CCheckListBox

Andy -- andy.garton@octel.com
Friday, January 12, 1996

Hi all,

Has anyone used this new (VC4) class?  It appears to be incomplete
(i.e. the MeasureItem() member function is not implemented).

Thanks,
Andy




Andy -- andy.garton@octel.com
Monday, January 15, 1996

Hi all,

Just to answer my own (dumb?!?) question.  A checked list box must
have the OWNERDRAWFIXED and HASSTRINGS styles.  This is not documented
as far as I can see, but I think may be something to do with these
clever new controls which can draw themselves (message refelction?).
Anyone know anymore about this?

Thanks,
Andy (hoping his post wasn't too far below "intermediate" level :-)

[Moderator's note: Grrr!  :-]

----------
From: 	David Pham[SMTP:dpham@b-r.com]
Sent: 	15 January 1996 08:44
To: 	Garton, Andy; mfc-l@netcom.com
Subject: 	Re: CCheckListBox

On 12 Jan 96 at 11:27, Garton, Andy (Garton, Andy ) 
wrote:

Hi all,

Has anyone used this new (VC4) class?  It appears to be incomplete
(i.e. the MeasureItem() member function is not implemented).

Thanks,
Andy
===============================================\
Yes, I have used it without any problem. However, I have not tried 
out everything yet, esspecially the MeasureItem().


_______________________________________________

David Pham                dpham@b-r.com
System Analyst            (713) 676-3824
Brown & Root, Inc.        1-800-888-ROOT X3824
Houston, TX U.S.A         FAX: 713-676-4808
_______________________________________________



Mike Blaszczak -- mikeblas@msn.com
Thursday, January 18, 1996

> Just to answer my own (dumb?!?) question.

I sent an answer to your question on 1/13/96 at 21:03 pacific time.  Did you 
not receive it?

> A checked list box must have the OWNERDRAWFIXED and HASSTRINGS styles.
> This is not documented

It's not documented because it's not a requirement.  If your listbox has 
OWNERDRAWFIXED and HASSTRINGS, you can use the base class implementation of 
CCheckListBox.  If your list box doesn't have these styles, then you need to 
handle some of  the messages the list box will generate.

You should be able to find this information in the source.  It _is_ a 
documentation bug that the overview doesn't explain the relationship of your 
list box object to the CCheckListBox or CCheckListBox-derived  object, and 
that's been fixed for VC++ 4.1.

> as far as I can see, but I think may be something to do with these
> clever new controls which can draw themselves (message refelction?).
> Anyone know anymore about this?

CCheckListBoxes don't have much to do with message reflection.

.B ekiM





| Вернуться в корень Архива |