|
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
We're already always on topic... (well, on-duty, maybe...)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
AND ITS URGENT,PLZ.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
You forgot SIR .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thank you for your mention,MR.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Did you somehow manage to cross a machine translation engine with a random sentence generator?
By the way, I really like this part:
mrcusutn wrote: Display resolution of colored by resolution of wishy-washy
|
|
|
|
|
mrcusutn wrote: ...of wishy-washy?
A Vietnamese washing machine?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
1. Ask somebody to translate your questions. Using a translator is a bad idea.
2. Post a question on a specific problem instead of a whole task.
3. Write it the way that nobody could guess that it's a homework.
4. Don't use words: "help me", "it urgentz" or "gif me codes".
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
I am using SetSelectionCharFormat in a RichEditCtrl object on my dialog box to allow a user to change the font/bold/etc text he is typing in the rich edit box.
Basically the function should change the character formatting as needed; the code is as follows:
void CRichEditProjDlg::OnSelchangeFontsize()
{
DWORD Selection=0, FontSize=0;
CString SelFontSize;
Selection = m_FontSize.GetCurSel();
m_FontSize.GetLBText(Selection, SelFontSize);
FontSize = _ttoi(SelFontSize);
CHARFORMAT Cfm;
Cfm.cbSize = sizeof(CHARFORMAT);
m_RichCatch.GetSelectionCharFormat(Cfm);
Cfm.yHeight = FontSize*20;
m_RichCatch.SetSelectionCharFormat(Cfm);
m_RichCatch.SetFocus();
UpdateData(TRUE);
}
void CRichEditProjDlg::OnBold()
{
CHARFORMAT Cfm;
Cfm.cbSize = sizeof(CHARFORMAT);
m_RichCatch.GetSelectionCharFormat(Cfm);
Cfm.dwMask = CFM_BOLD;
Cfm.dwEffects ^= CFE_BOLD;
m_RichCatch.SetSelectionCharFormat(Cfm);
m_RichCatch.SetFocus();
}
This bold-ing function works fine, but the Font size one only works when the selected text are all of the same font size.
For example, if all of the selected text are of font size 10, I selected all of them and chose Font size 20, they would all change to font size 20. But if the selected text was of differing font sizes, say the first few words were font size 10 and the rest font size 11, the code does not change the font size of any of the selelcted text.
Am I approaching the function in the wrong way? Or must I do an internal check for different font sizes and change them all separately somehow?
Please feel free to ask for more information if needed.
Thank you.
|
|
|
|
|
Ummm - maybe you should set Cfm.dwMask to CFM_SIZE when setting the font size?
Also - why bother getting the selection's char format, when you can specify only the attributes you want to set within the CHARFORMAT structure?
|
|
|
|
|
Thanks. That seems to have worked.
Guess i missed that part.
As for the question, I guess I'm used to the "Get" then "Set" process. Didn't think of any other way.
Thanks again.
|
|
|
|
|
I'm trying to create a simple fax application that justs sends a fax. Has anyone come across a basic example.
Thanks to anyone that can help
|
|
|
|
|
I would have thought it was dependent on your interface to the fax gateway/comms device (if you have one) - most fax cards come with some sort of software for example, if you're dealing with a modem/pstn line combo then your solution will be different (since you havnt specified anything here its a bit hard without such info) ...
Microsoft, as part of their TAPI interface, provide this :- http://msdn.microsoft.com/en-us/library/ms690910(VS.85).aspx[^]
ie a COM interface which may help - I havnt read it but I'd be thinking you'd need a modem and some sort of comms line for instance
A quick google finds plenty of info out there on SDK's etc - your ISP might also provide a fax interface or such
'g'
|
|
|
|
|
|
|
I've already looked at both the Black Ice and microsoft examples. The Black Ice looked good until I started to step through the free example code. It looks like it is missing the key source code. I've written examples that send off emails in just a few lines of code. Is it just not that easy to send a fax? I just figured you would just find an attached modem send it a phone numer and the location of the document and go, like you would with an e-mail.
|
|
|
|
|
take a look at the browser in the front of yourselves. When you move the scroll bar, every thing moves up and down; includeing buttons, edit boxes, list boxes and so on. How can I achieve such a thing?
Thank you masters!
|
|
|
|
|
This[^] might help.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
Jusef Marzbany wrote: take a look at the browser in the front of yourselves. When you move the scroll bar, every thing moves up and down; includeing buttons, edit boxes, list boxes and so on. How can I achieve such a thing?
I suppose you should move the scroll bar of your dialog window.
(see for instance, Simple Word Processing with an Edit Control [^]).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
What's really eerie is, he knows what's on my browser
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Actually we ALL know what's on your browser!
Be careful!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
why do you open so many tabs on CodeProject?
|
|
|
|
|
Hey get off my browser!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Seems you're looking for something like this. Scrollable Child Dialog[^]
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Thank you all for suggestions. All worked ...
|
|
|
|