|
You will probably be better off going to teh GDI to do the color conversions for you. You can do this by asking your DirectDrawsruface for its DC then calling the GDI function.
There is really no other way to do this in DirectDraw unless you want to do it yourself, but I am willing to bet that the GDI will still be faster than what you could create.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
does somebody know if it´s possible get the supported read/write features from about a cd-rom/burner (so infos like supports reading CD-R, CD-RW, Read Speed, Write Speed) and somethin like that ?
|
|
|
|
|
|
thanx for info, could u give me a small hint why i have to look for like an API or whatever ?
Actually i only could figure out how the Check my IDE Controller For an CD-Rom or do the same think via the wnaspi32.dll.
But it seems both ways don´t have more information options left for me, so must i read the bios of the cd-rom ?
|
|
|
|
|
thanx for info, could u give me a small hint what i have to look for like an API or whatever ?
Actually i only could figure out how the Check my IDE Controller For an CD-Rom or do the same think via the wnaspi32.dll.
But it seems both ways don´t have more information options left for me, so must i read the bios of the cd-rom ?
|
|
|
|
|
I'm using SetTitle on a class derived from CDoc, but the title doesn't change. I've tried calling UpdateAllViews(NULL); but it still doesn't change.
Any ideas why and / or how I can change the title?
Ali
|
|
|
|
|
Where in your code are you calling SetTitle?
Michael
Errata 1: p. 154, section 'Defusing'. For 'red wire' read 'blue wire'.
|
|
|
|
|
At the end of OnOpenDocument - something like this
BOOL CSQMDoc::OnOpenDocument(LPCTSTR lpszPathName)
{
// TODO: Add your specialized creation code here
CString szName = lpszPathName;
if (!CDocument::OnOpenDocument(lpszPathName))
return FALSE;
InitDocument(lpszPathName);
.......
.......
.......
SetTitle(TEMP_FILENAME);
return TRUE;
}
Ali
|
|
|
|
|
SetTitle is called by the framework after you've set your custom title by the CDocument::OpenDocumentFile function.
So you won't be able to set your title in OnOpenDocument.
You could try doing it in CView::OnActiveView by calling GetDocument()->SetTitle
Alternativly you could override the default CDocument::SetTitle function and make sure it only sets the title to the value you want.
Michael
Errata 1: p. 154, section 'Defusing'. For 'red wire' read 'blue wire'.
|
|
|
|
|
Thanks for the help, I decided to override the CDocument::SetTitle function and it now does just want I need it to.
Cheers
Ali
|
|
|
|
|
err = PGPEncode( context,
PGPOEncryptToKeySet( context, foundUserKeys ),
PGPOInputFile( context, inFileRef ),
PGPOOutputFile( context, outFileRef ),
PGPOLastOption( context ) );
This works fine for DSS keys but fails for RSA keys
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
hi Nish
i am from trivandrum
i mailed u mant times there is no replay
mail me go4renjith@rediffmail.com
Renjith
R_Renjith The True CP ian
|
|
|
|
|
Hi,all, I want to paint a bias and never use LineTo(),Because I want get every point's coordinate in the bias.How can i do?
Thanks!
BR
jzhlily
|
|
|
|
|
Have you looked at Polyline()? It takes an array on points (coordinates) and draw them all at once.
mike...
|
|
|
|
|
i want get every point's corrdinates in the line. such as that I have two point:point1(x1,y1) and point2(x2,y2),I want get every points(coordinates) in the line(from point1 to point2).
jzhlily
|
|
|
|
|
I'm not sure if this is what you want, but you may want to look at the LineDDA function. It passes all the coordinates needed to draw a specified line to a user defined callback function (it calls the callback function for each pixel in the line).
Best regards,
John
|
|
|
|
|
If I add, for instance, a CHTMLView to my project, what else do I need to add to the program to be able to use this view.... ie do I need to add a new frame, a new document etc? and how do i relate the new document and view?
Thanks
Ben
|
|
|
|
|
Is this an MDI or SDI applicaton?
Michael
|
|
|
|
|
Wow that was fast...
Sorry its MDI!
|
|
|
|
|
|
Hi !
I would like to have an standard list control, in my ATL ActiveX property pages, and... I would like to edit the fields of the items... inplace... ( like in million samples of MFC code...).
And... I wouldn´t like to add any extra control DLL to my control, just only add a minimum extra weight to my DLL.
Any tip about how to do this ?, Thanks, greetings
Braulio
|
|
|
|
|
Create a sublclassed listcontrol, handle the clicks in the list
and create an editbox/combobox...or what you need when clicked.
/Magnus
|
|
|
|
|
Hi all
Could someone help me how to change CHtmlView's rendering font by TTF. ( HTML file output font). I am trying SDI with CHtmlView.
I tried to change in OnCreate(); and OnInitialUpdate().. but could not succeed.
My main goal is detect windows-1251 character set and then render it by own TTF. It is very important for me.
Any tips any link will be great.
Thank you all
|
|
|
|
|
Hi!
I want to delete macro's from compound file.
No problem with word(doc) , pStorage->destroyElement().... L"Macros"....works fine.
But I have a problem with Excel, after deleting the macro storage (_VBA_PROJ..) the excel file fails to open.
I tried deleting streams ,but still other problems.
What should be done? Any suggestions?
Thanks Erez.
|
|
|
|
|
Macros often resolve in some code. So you must care to what this macro resolves.
It´s often not very funny.
|
|
|
|