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

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


Wizard Property Sheet - customize

Greg Powers -- pow@cruzio.com
Monday, September 23, 1996

Environment: WIN95  VC++ 4.2
===============================

I am using SetWizardMode() with CPropertySheet. I need to put bitmaps on
the Next/Back/Apply/Etc buttons. Can someone point me towards some
documentation or example code??


<<<< Greg Powers, pow@cruzio.com, Entriade Systems >>>>



Rudd Clive -- crudd@softronic.se
Wednesday, September 25, 1996

[Mini-digest: 3 responses]

If you use propertysheet from components Gallery you=B4ll get=20
SetWizardMode() call
in CPropertySheet constructor, plus you get a  class that has a OnDraw=20
function for
the propertysheet, use this in every page instead for the=20
propertysheet.




----------
From: 	Greg Powers[SMTP:pow@cruzio.com]
Sent: 	den 23 september 1996 23:13
To: 	mfc-l@netcom.com
Subject: 	Wizard Property Sheet - customize

Environment: WIN95  VC++ 4.2
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D

I am using SetWizardMode() with CPropertySheet. I need to put bitmaps=20
on
the Next/Back/Apply/Etc buttons. Can someone point me towards some
documentation or example code??

 If you use propertysheet from components Gallery you=B4ll get=20
SetWizardMode() call
in CPropertySheet constructor, plus you get a  class that has a OnDraw=20
function for
the propertysheet, use this in every page instead for the=20
propertysheet.



<<<< Greg Powers, pow@cruzio.com, Entriade Systems >>>>


-----From: beriksen@cda.com

     You haven't looked very hard, so I won't write very hard...  Look into 
     changing the style of the buttons to ownerdraw.  There's also a bitmap 
     button type, I think.  Look into that, too.  To get a CWnd pointer to 
     the button is probably the only hard part.  You can use 
     MyPropertySheet->GetDlgItem(ID_WIZNEXT or ID_WIZFINISH or ID_WIZBACK 
     or IDCANCEL).

[Moderator's note: He could also use the SetBitmap() routine in Win95.
The reason I let this question through was so that someone might
deal with what is "probably the only hard part".  My advice to
Greg at this point is to use Spy++ to find the IDs of the buttons.
Maybe someone knows these offhand, and could explain why there isn't
a simple, documented way to get to these buttons.]
     
     Brian Eriksen
     CDA/Wiesenberger
     beriksen@cda.com

-----From: Alexander Grigoriev 

To customize standart buttons you need to declare CBitmapButton members =
in your CPropertySheet derived class, then associate these members with =
the controls. You will probably need to modify the buttons' style.





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