A lot of companys are using Trac to track their daily work, and there are also a lot of small companys which are using Google Apps to build their Email systems and etc..
Here shows an example about how to set Trac for using Google Apps Gmail to send Email notifications. Modify trac.ini file with following part:
[notification] admit_domains = always_notify_owner = false always_notify_reporter = false always_notify_updater = true email_sender = SmtpEmailSender ignore_domains = mime_encoding = none sendmail_path = sendmail smtp_always_bcc = smtp_always_cc = example@yourcompany.com smtp_default_domain = smtp_enabled = true smtp_from = trac@yourcompany.com smtp_from_name = Trac smtp_password = your_password smtp_port = 587 smtp_replyto = trac@yourcompany.com smtp_server = smtp.gmail.com smtp_subject_prefix = __default__ smtp_user = trac@yourcompany.com ticket_subject_template = $prefix #$ticket.id: $summary use_public_cc = false use_short_addr = false use_tls = true
Just replace the trac@yourcompany.com with your own Email address. Please check The Trac Configuration File for the detail explanation of the settings.
Then enjoy the Email notifications.
I am building an application which can snapshot a screen shot and show the darker picture of this bitmap in my application.
We can also call this darker picture as semi transparent picture. It is just something like we put a gray transparent overlay on the top of this bitmap.
I try to do this job using MFC function CDC::BitBlt. Here is my example:
CRect rect; GetClientRect(&rect); CDC* pDC; // get the value of pDC here pDC->BitBlt( 0, 0, rect.Width(), rect.Height(), &dcCompatible, 0, 0, MERGECOPY);
This way can make the bitmap darker, but the result is not perfect. If you want to make it perfect, you can use AlphaBlend function. I will write a blog article to descripbe how to use it.