|
Why u don't make the background transparent? I thinks its the green monitor button in the icon editor.
Thanks, Mark
|
|
|
|
|
macmac38 wrote:
Why u don't make the background transparent
Because I have used a bitmap, and not an icon. Let's use an icon
Thanks for the help.
~RaGE();
|
|
|
|
|
button->properties->styles.bitmap(click)
button->properties->extended styles.transparent(click)
i hope it will work
|
|
|
|
|
no no... i'm not right..
you can make your background transparent in the icon editor...
click the oranje/rose monitor.
sorry
|
|
|
|
|
See if this article is of any help.
http://flounder.com/bitmapbutton.htm
|
|
|
|
|
Hello,
when i like to overwrite data in a file with new data, how i do it?
I have a file where i save the filenames entered in the "save as" dialog window.
Thanks, Mark
|
|
|
|
|
Hi,
use "CFile::modeCreate" mode.
It will truncate the file to 0, if the file is already exists(overwrite). Otherwise, it will create a new file.
Hope this helps
regards
~Hari~
|
|
|
|
|
Thanks! I haven't found a good howto about CFile in the web yet. Always the same stuff like in the VC help..
regards Mark
|
|
|
|
|
I'm trying to load a bitmap into a imagelist, and to get a transparent background.
The imagelist is used in a CListCtrl.
When I load the bitmap directly I get transparent images, but wrong colors.
m_ilReport.Create(IDB_TOOLBAR_GRID256, 16, 1, RGB(255,0,255));
If I load it into a CBitmap first the colors look ok, the problem is that the mask color is replaced with black. SetBkColor seems to have no affect. I've tried with regular colors too.
m_ilReport.Create(16, 16, ILC_COLOR8, 16, 1);
CBitmap bmp;
bmp.LoadBitmap(IDB_TOOLBAR_GRID256);
m_ilReport.Add(&bmp, RGB(255, 0, 255));
m_ilReport.SetBkColor(CLR_NONE);
ctl.SetImageList(&m_ilReport);
What have I done wrong?
|
|
|
|
|
You are setting the transparency colour to be the bright pink that has
RGB(255,0,255). It's what I do in my code, as it's not a colour I use normally in the actual bitmap.
Snip of code that works for me:
m_ImageList.Create(IDB_ALARMBANNER ,16,32,RGB(255,0,255));<br />
m_nImageIndex[IMAGE_ALARMBANNER] = nImageIndex++;
<br />
AddBitmapToList(m_ImageList,IDB_ALARMCLIENT,IMAGE_ALARMCLIENT,nImageIndex++);<br />
<br />
void CMainDialog::AddBitmapToList(CImageList& ImageList, UINT nId, UINT nImageId, UINT nImageIndex)<br />
{<br />
CBitmap bm;<br />
bm.LoadBitmap(nId);<br />
ImageList.Add(&bm, RGB(255,0,255));
m_nImageIndex[nImageId] = nImageIndex;<br />
}
Debbie
|
|
|
|
|
thanks. But that doesnt help me. I want to know why it doesnt work.
Why do the colors look f***edup if I use the same overloaded version of create as you do? (The one where u specify the mask color)
Why do the mask become black when I first load the bmp into a CBitmap and then load the CBitmap into the imagelist?
|
|
|
|
|
Hallo there!
I need help... did you ever made a PS plugin??
if YES: HOW? where can i download the PhotoShop 7.0 SDK? (Not at Adobe.com)
if NO: ...
thanx for helping me;)
|
|
|
|
|
Sorry, if you want to get the official 7.0 SDK, you need to be an Adobe Solutions Network member (basic membership is US$195).
However, if you're just looking to make filter plugins, there are some more affordable options:
http://thepluginsite.com/knowhow/plugincreation.htm[^]
- Mike
|
|
|
|
|
thanx
but i realy need SDK... i know the price for it... but dont have that monny to pay
i will try to get it peer to peer...
thanx for your help anyway
|
|
|
|
|
Is there a "PreTranslateMessage" equivalent in ATL?
I need to pre-filter WM_CHAR for a dialog.
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
.. about fixing a few bugs in some MFC controls, such as getting the actual selected element of a CTreeCtrl. There was also a few things about the CListCtrl in this article, which is very short but very useful. Please help me find it ...
~RaGE();
|
|
|
|
|
Hi
Anyone here at cp who works with Dbase IV database using the libraries of Codebase (www.codebase.com)? I need to add a database item to an existing db-file.
Can anyone help me out? Would appreciate it greatly!
Greetings
Jens
|
|
|
|
|
I want to send email with my SMTP server and I want to send attachments with it. For attaching file,I have to encode attached file to base64.So the question is how can I convert my data to base64?
Mazy
No sig. available now.
|
|
|
|
|
|
Thanks,I'll check it.
Mazy
No sig. available now.
|
|
|
|
|
In an MFC dialog application is there a way to trap the escape key so that when it is pressed the application won't shut down?
Thanks
|
|
|
|
|
yes, put this into your message map (.h) of that form
virtual void OnCancel();
void CMyDialog::OnCancel()
{
AfxMessageBox("escape");
}
i hope this helps.
Greetings
Jens
|
|
|
|
|
Jens,
Well after messing around with this for a little while I noticed a side effect that I had not expected. This method not only blocks the escape key but it blocks alt+F4 as well. Is there a way to know that the escape key has been pressed. I tried to capture it in OnKeyDown() but the escape key does not seem to register there. Any ideas?
Cheers,
Steve
|
|
|
|
|
You can override the OnCancel function (and not call CDialog::OnCancel() ).
|
|
|
|
|
Thanks,
That was overly easy
Steve
|
|
|
|