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

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


Persistent 3D-Look

IceMan -- rmenschi@umr.edu
Sunday, August 25, 1996

Environment: Visual C++4.0, Win95

Greetings,

...I've hit Microsoft's Knowledge Base about adding the 3d look to 
dynamically created controls... unfortunately what I'm trying to do is 
create a COMBOBOX *without* the 3D look of Win95.  I've got a "flat" EDIT 
control, but the COMBOBOX of mine is always coming up 3D.  (I've tried 
Create, CreateEX, ModifyStyle and ModifyExStyle).

...Anyone know how to get rid of the persistent 3D look on a CComboBox?

(this seems like it should be a lot easier than it's turning out to be)

Thanks,
	Rob Mensching
	rmenschi@umr.edu




David Little -- dlittle@communique.net
Tuesday, August 27, 1996

Rob Mensching wrote:
> 
> Environment: Visual C++4.0, Win95
> 
> Greetings,
> 
> ...I've hit Microsoft's Knowledge Base about adding the 3d look to
> dynamically created controls... unfortunately what I'm trying to do is
> create a COMBOBOX *without* the 3D look of Win95.  I've got a "flat" EDIT
> control, but the COMBOBOX of mine is always coming up 3D.  (I've tried
> Create, CreateEX, ModifyStyle and ModifyExStyle).
> 
> ...Anyone know how to get rid of the persistent 3D look on a CComboBox?
> 
> (this seems like it should be a lot easier than it's turning out to be)
> 
> Thanks,
>         Rob Mensching
>         rmenschi@umr.edu
Why don't you try trapping the WM_CTLCOLOR message?  That is how you
GAVE the 3D look before Win95... Just return a CBrush, and don't call
the base class....





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