|
Where to Find Good MFC FAQ?
|
|
|
|
|
Have you tried typing "MFC FAQ" at Google and seeing what turns up?
Kevin
|
|
|
|
|
everbody like google! so good!
'|'
|
|
|
|
|
Here are a few to get you started:
http://www.flounder.com/mvp_tips.htm
http://cui.unige.ch/OSG/people/Past/fuentes/Mfc/mfc.html
http://www.mooremvp.freeserve.co.uk/
http://www.naughter.com/
Googling for more will be a good exercise.
|
|
|
|
|
|
hi all
I've a bitmap as background in dialog based application.
Is it possible to make some change in a small rect part of this bitmap?
not in whole bitmap.Like making that small part transprint or anyother
......effect?
|
|
|
|
|
i forgot to tell, bitmap is not resource. I'm loading it
|
|
|
|
|
hey,
does anyone know how to insert text into an avi file?
there's a filter that does this, aware motion ... something,
but i wanted to know how to do something like that,
any help would be very ... um, ... helpfull !
thanks
|
|
|
|
|
Hi !
I'd like to put a bmp on a button. It is an arrow, so I've drawn this arrow in the ressource editor, using grey for the background, and blue for my arrow.
The problem is, when the user does not use the default Windows theme (with gry windows ...9 or under XP theme), the background of my bitmap stays grey, whereas the rest of the windows has another color. How can I do to have the background color of my bmp be read as "transparent" ? Do i have to manually blit the bitmap everytime the window is being redrawn ??? (I hope not...)
Thanls for the help...
~RaGE();
|
|
|
|
|
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();
|
|
|
|