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

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


bitmap list

Stephen M. Tallon -- stallon@exis.net
Tuesday, December 17, 1996

 Environment: VC++ 1.52c, Win3.1

Does anyone out there know of a good example showing a selectable bitmap
list that activates an associated dialog?  I'm looking for something
similiar to the old Word 2.0 option dialog (before it went tabbed in the
newer versions) or the current Eudora option list.

The only twist is that I'd like to do this, not with dialogs, but using
dialog templates to switch them in a CFormView.  And, yes, the app has to be
16-bit.

I think I remember seeing a how-to on the dialog implementation about a year
or so ago, but can't remember where I saw it.  And, yes, I have tried MSDN
but I come up with either a couple thousand hits, or a few hits... mostly
because I'm not sure what specific nomenclature to use to describe this
thing in a keyword list.

Any help would be much appreciated!  TIA

 




Mathias Olausson -- mathias.olausson@lig.linnedata.se
Friday, December 20, 1996

[Mini-digest: 2 responses]

Neither example, nor code, but anyway...

I would suggest you start with an owner drawn listbox which displays the icons. Then
you associate each line with some information (for instance a resource id for the document
type you want to display when the item is selected, or, if you can afford it, you might store
pointers to formviews already created in memory). When the user selects an item you will
have the nessecairy data at hand and will be able to display the correct form. The implementation
should by quite straightforward.

Mathias Olausson
Linne Data AB
mathias.olausson@lig.linnedata.se
-----From: "Hardcore Computer Maniac [Arthur Z.]" 

All you have to do is create an owner-draw listbox and handle its
LBN_SELCHANGED. Microsoft has a sample program somewhere (in Win32 docs)
that shows you how to set up an owner-draw lb.

- Hardcore Computer Maniac (Arthur Z.)

Stephen M. Tallon wrote:
> 
> Does anyone out there know of a good example showing a selectable bitmap
> list that activates an associated dialog?  I'm looking for something
> similiar to the old Word 2.0 option dialog (before it went tabbed in the
> newer versions) or the current Eudora option list.
> 
> The only twist is that I'd like to do this, not with dialogs, but using
> dialog templates to switch them in a CFormView.  And, yes, the app has to be
> 16-bit.
> 
> I think I remember seeing a how-to on the dialog implementation about a year
> or so ago, but can't remember where I saw it.  And, yes, I have tried MSDN
> but I come up with either a couple thousand hits, or a few hits... mostly
> because I'm not sure what specific nomenclature to use to describe this
> thing in a keyword list.



Eliot Rogers -- erog@europa.com
Saturday, December 21, 1996

On MSDN you can find an MSJ article in the March 94 issue called "Simplify
and Enhance Your Application's User Interface with Dynamic Dialog Boxes"
which shows a method of doing this sort of thing.

Hope it helps
-- Eliot Rogers





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