Originally posted by: sunghee kwon
The background color of a CRichEditCtrl can be changeable
using the function
SetBackgroundColor(BOOL flag, COLORREF(RGB)).
How can be possible to put a pattern on the background?
Originally posted by: Tony Bloomer
I just want to add a nice gradient fill in the title bar and still have the usual icon,title text and control buttons. Norton Utilities put it on all thier dialogs so I thought I'd borrow the effect for my own dialogs. Ive put the gradient in OnNCPaint and added the control buttons. However, the buttons dont work and all kinds of weird things happen when the window loses focus! can some one help me?
Thanks in advance
Tony
ReplyOriginally posted by: Walt
This is consistant with the same behavior and only comes from the use COleDocObjectItem , but not just COleClientItem
** Word crashes when used as a container & server **
When Word is in a container and hosts an ActiveX control within it... it switches
menu context to the WRONG thing and blows up.
To reproduce this is simple.
First create a dummy OCX by New Project
ActiveXControl Wizard
Available in "Insert Object" dialog
all rest defaults
Create another New Project (the container)
Multi Document
Contiainer
Active Document Container
all rest defaults
Now run the container and Insert a Word Document.
The Word Document will take over the menus ... From the Insert menu in Word...choose
insert Object and insert the OCX that just created from above ... double click it to
activate it.
Notice 1) The Menus, when the ocx is activated, are set to the resource of the container, rather than
Word.
Notcce 2) the Bug: Now deactivate the control by clicking elsewhere within the word document ... go to
the
Word pull down menus and find one not grayed out (why are they all grayed out?) ... pick it and BLOW
UP.
Word Crashes ...
Why? Is there a way to overcome this? I'm desparate for an answer on this because 2 weeks of work will be
trashed if I can't come with a solution.
Reply
Originally posted by: Yong Choe
Please, help! A MFC novice trying to understand why he can't draw a simple rectangle in
OnInitDialog method in CDialog class when the same code works for OnLButtonClick, etc.
Originally posted by: Oded Katz
This code doesnt work on the title bar does any body knows how to change the title bar color
Originally posted by: Fred
This example only works in high color mode, or if you choose one of the ugly standard windows colors. If you
need to support systems running 8-bit color, the result is a dithered, unusable background. Look at my
comment on the other dialog background example for supporting 256 color mode.
Originally posted by: Chen Tuo
The background color of database application is gray generated by VC6.0
AppWizard. How can I change the color? Please gelp me.
Originally posted by: Michael
Using SetDialogBkColor works fine but I don't want to have all the static text to be of the same color, how do you do that?
- how do you specify the static text to have the default windows background color? (eg, if another user uses a different desktop scheme, setting your text background color to gray will look awkward to a desktop scheme that has say black background)
ReplyOriginally posted by: Sterling Lee
The said is fine, but if I wish to change the text color of a disabled edit control (read only).
how would I go about it.
I could change the font, but I would have to install that font, incase the client machine doesn't have
it.
I've tried changing the text color & background, but in Vain.
Originally posted by: Zakhar aka Laser
������-�� ��� ����� ���� � � ����� ����������. �� ����� ��� Backgrond Pictiure ��������
Reply