Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Path of a file in console app Pin
Cedric Moonen5-Jan-06 23:12
Cedric Moonen5-Jan-06 23:12 
AnswerRe: Path of a file in console app Pin
sunit55-Jan-06 23:11
sunit55-Jan-06 23:11 
AnswerRe: Path of a file in console app Pin
David Crow6-Jan-06 4:56
David Crow6-Jan-06 4:56 
GeneralRe: Path of a file in console app Pin
sunit56-Jan-06 19:12
sunit56-Jan-06 19:12 
QuestionHow to get font information from clipboard Pin
Frankdou5-Jan-06 21:27
Frankdou5-Jan-06 21:27 
AnswerRe: How to get font information from clipboard Pin
Rajesh R Subramanian5-Jan-06 21:36
professionalRajesh R Subramanian5-Jan-06 21:36 
AnswerRe: How to get font information from clipboard Pin
Owner drawn5-Jan-06 21:40
Owner drawn5-Jan-06 21:40 
AnswerRe: How to get font information from clipboard Pin
Michael Dunn5-Jan-06 22:40
sitebuilderMichael Dunn5-Jan-06 22:40 
Since there isn't just one clipboard format, you'll need to look for data and parse it. For example, Word puts RTF and HTML data on the clipboard; either of those can be parsed to find the font. I just tried with Word 2K and the relevant HTML is:
<span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:"Book Antiqua";mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA'>Hello, Bob!</span>
which shows the font was Book Antiqua 10 pt. If you haven't already, check out my ClipSpy[^] article so you can see exactly what data gets put on the clipboard.

--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
I even hear the Windows "OMG I booted up fine" sound.
  -- Paul Watson diagnosing hardware problems.

GeneralRe: How to get font information from clipboard Pin
Frankdou8-Jan-06 13:56
Frankdou8-Jan-06 13:56 
Questionhow to do like this popup menu Pin
HOW WHAT5-Jan-06 21:17
HOW WHAT5-Jan-06 21:17 
AnswerRe: uhow to do like this popup menu Pin
Sebastian Schneider5-Jan-06 21:31
Sebastian Schneider5-Jan-06 21:31 
GeneralRe: uhow to do like this popup menu Pin
HOW WHAT5-Jan-06 22:41
HOW WHAT5-Jan-06 22:41 
AnswerRe: uhow to do like this popup menu Pin
Owner drawn5-Jan-06 21:58
Owner drawn5-Jan-06 21:58 
GeneralRe: uhow to do like this popup menu Pin
HOW WHAT5-Jan-06 22:27
HOW WHAT5-Jan-06 22:27 
AnswerRe: how to do like this popup menu Pin
khan++5-Jan-06 23:16
khan++5-Jan-06 23:16 
GeneralRe: how to do like this popup menu Pin
HOW WHAT5-Jan-06 23:35
HOW WHAT5-Jan-06 23:35 
GeneralRe: how to do like this popup menu Pin
khan++6-Jan-06 0:05
khan++6-Jan-06 0:05 
QuestionHow to close this one? Pin
Eytukan5-Jan-06 20:58
Eytukan5-Jan-06 20:58 
AnswerRe: How to close this one? Pin
Anilkumar K V5-Jan-06 21:12
Anilkumar K V5-Jan-06 21:12 
GeneralRe: How to close this one? Pin
Eytukan5-Jan-06 22:03
Eytukan5-Jan-06 22:03 
GeneralRe: How to close this one? Pin
Owner drawn5-Jan-06 22:31
Owner drawn5-Jan-06 22:31 
GeneralRe: How to close this one? Pin
Eytukan5-Jan-06 22:46
Eytukan5-Jan-06 22:46 
AnswerRe: How to close this one? Pin
Prakash Nadar5-Jan-06 21:29
Prakash Nadar5-Jan-06 21:29 
GeneralRe: How to close this one? Pin
<color>Aljechin 5-Jan-06 21:32
<color>Aljechin 5-Jan-06 21:32 
GeneralRe: How to close this one? Pin
Eytukan5-Jan-06 22:01
Eytukan5-Jan-06 22:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.