|
ok thanks..but how do you change the font size?
|
|
|
|
|
alimanishere wrote: how do you change the font size?
LOGFONT lf = {0};
_tcscpy(lf.lfFaceName, _T("MS Sans Serif"));
lf.lfHeight = 8;
lf.lfWeight = FW_BOLD;
CFont font;
m_font.CreateFontIndirect(&lf);
dc.SelectObject(font);
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello Friends
Any idea as to how we can export a document in text/HTML format to RTF/DOC format?
Is there anything free from microsoft to do the conversion?
Or some other library / some way?
Regards
|
|
|
|
|
I would be tempted to try it with Word. It has a COM interface that can open/save documents.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
A possibly quick and dirty way is to create an application that has a Rich Edit control on it, and paste in content from a normal edit control or a browser. You can then stream the RTF back out of the rich edit control.
It is Q&D, but it should work...
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
how to insert a dll to our VC++ Project files and how to findout the functions exported to it if we don't have knowledge on it...pl any one answer it
Thanks a lot
|
|
|
|
|
|
Should start from Part 1[^] of series of articles by Hans Dietrich.
|
|
|
|
|
Hello comunity,
i try to open local html files using CInternetSession::OpenURL(); function, but this fails
every time when the path has some letters that are over 122, example, if path contains
letter ä!
I recive an error that the path is incorect, and the letter in this case ä is changed to %E4!
How to solve this, is this posible?
And, if the path has only the normal letters, this funktion works fine!
thanks for any help!
with best regards
break;
|
|
|
|
|
I believe URLs have a limited set of allowed characters, something like:
Only alphanumerics [0-9a-zA-Z] and the special characters $-_.+!*'(),
Any other characters need to be encoded.
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Hello,
is there a function to encode a url path or we need to make own function for that?
regards
termal
|
|
|
|
|
InternetCanonicalizeUrl() I believe. That's what gets called by MFC to parse your URL when you
call CInternetSession::OpenURL().
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Dear friends,
If you'll see "http://www.codeproject.com/tabctrl/SimpleTab.asp" this link. We will get how to add two dialogues ina tab control. but how to display both of them at the same time? I m trying hard but not able to get the solution.. Please help me..
Megha
|
|
|
|
|
megha_gharote wrote: how to display both of them at the same time?
You can't, because tabcontrol shows only one dialog at a time.
Solution is, make two dialogs as a child dialogs into one of the tab.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Thanks..
I checked for the properties of Both Dialogue boxes they are Child dialogues.. or Do u mean to say that i have to make changes some where else??
As given on the same web site i tried using CibTab Control. but it is also not working... Do u have any idea about CibTab Control?
Megha
|
|
|
|
|
Megha wrote: How to display two dialogues added in tab control at the same time?
Should tab control show both tab at a time?
Or
DO you want to assign the dialog to tab as per condition given?
Please elaborate more....
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Hi all,
I am working on PropertySheet and PropertyPage (WizardMode). I have two Property Pages.
In second property page there are
1. single edit box
2. Back, Finish and Cancel Buttons.
When i click Finish after entering some value in edit box, i return CPropertyPage::OnWizardFinish();. This is OK.
But problem is
When i click Finish without entering any value in edit box, i return FALSE.
The Property page is present. But the mnemonic doesn't work. That is
ALT B for Back
ALT C for Cancel
Please give me the solution.
THanks in Advance.
|
|
|
|
|
MemoryDevice wrote: ALT B for Back
This should work. Doesn't B of Back underlined, when you press Alt ?
MemoryDevice wrote: ALT C for Cancel
Mnemonic is not present for Cancel button. Need to use Esc key.
|
|
|
|
|
prasad_som wrote: Mnemonic is not present for Cancel button.
Ya. You are right.
But ALT B is not working.
|
|
|
|
|
MemoryDevice wrote: But ALT B is not working.
I made a simple test app, where it works as it should. Perfect.
Can you show code how your property page class looks like, how property sheet is contructed.
|
|
|
|
|
When i click Finish without entering any value in edit box, i return FALSE.
The Property page is present. But the mnemonic doesn't work.
As i said, it DOES NOT work fine only in above case.
In all other cases it works fine.
|
|
|
|
|
And how can I guess that without seeing some code ? I'd already asked for that.
|
|
|
|
|
My very large app was shipped to a customer and as you might guess it failed. My code has lots of try catches in it and I though it strange that it failed with no exception traps shown in the log. After trying to insert some deliberate exceptions I found that the exception traps are not working at all. To test what was going on I created a console app:
int _tmain(int argc, _TCHAR* argv[])
{
printf("Start\n");
try
{
int *pWord=NULL;
*pWord=999;
}
catch(...)
{
printf("Error was caught\n");
}
printf("Stop\n");
return 0;
}
This should display
Start
Error was caught
Stop
But it actually displays
Start
.. the the MS crash dialog pops up.
Does anyone know why my exception traps have been disabled.
Richard.
Hell I thought it was funny .....
|
|
|
|
|
All is working as it should on a standard compliant C++ compiler. Low level exceptions are not meant to be caught by C++ catch blocks; only C++ exceptions thrown by the C++ throw keyword are. MSVC6 was buggy in this area and such exceptions could be caught by this construct. This bug was fixed in later versions. The "old" (non standard) behaviour can be enabled via the /EHa[^] compiler switch. Alternatively you can use SEH[^] to catch low level exceptions; be warned however that this is specific to the Windows platform and doesn't unwind the stack.
Steve
|
|
|
|
|
Thank you, that explains why it all worked fine under the old compiler.
Your reply is much appreciated.
Hell I thought it was funny .....
|
|
|
|