Click here to Skip to main content
15,905,322 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CString porble Pin
Jason Teagle2-Sep-07 22:58
Jason Teagle2-Sep-07 22:58 
QuestionHyperlink on WebBrowser Control Pin
vikrant kpr2-Sep-07 8:23
vikrant kpr2-Sep-07 8:23 
AnswerRe: Hyperlink on WebBrowser Control Pin
Gary R. Wheeler2-Sep-07 14:25
Gary R. Wheeler2-Sep-07 14:25 
QuestionUnicode string hash Pin
Bartosz Bien2-Sep-07 6:52
Bartosz Bien2-Sep-07 6:52 
AnswerRe: Unicode string hash Pin
cmk2-Sep-07 7:55
cmk2-Sep-07 7:55 
Questioncurve length Pin
includeh102-Sep-07 6:14
includeh102-Sep-07 6:14 
AnswerRe: curve length Pin
Anurag Gandhi2-Sep-07 20:32
professionalAnurag Gandhi2-Sep-07 20:32 
AnswerRe: curve length Pin
Russell'3-Sep-07 1:16
Russell'3-Sep-07 1:16 
Questioncan you help me with a program that can do numerical methods? Pin
mitsui582-Sep-07 2:26
mitsui582-Sep-07 2:26 
AnswerRe: can you help me with a program that can do numerical methods? [modified] Pin
mitsui583-Sep-07 1:30
mitsui583-Sep-07 1:30 
QuestionCBitmapButton mouseover change bitmap? (vc++ 6.0) Pin
rolfhorror2-Sep-07 2:05
rolfhorror2-Sep-07 2:05 
AnswerRe: CBitmapButton mouseover change bitmap? (vc++ 6.0) Pin
Mark Salsbery2-Sep-07 9:50
Mark Salsbery2-Sep-07 9:50 
GeneralRe: CBitmapButton mouseover change bitmap? (vc++ 6.0) Pin
rolfhorror2-Sep-07 10:35
rolfhorror2-Sep-07 10:35 
QuestionI have a question about retrieve a window handle at mouse position. Pin
tmay_992-Sep-07 0:32
tmay_992-Sep-07 0:32 
AnswerRe: I have a question about retrieve a window handle at mouse position. Pin
bob169722-Sep-07 5:00
bob169722-Sep-07 5:00 
GeneralRe: I have a question about retrieve a window handle at mouse position. Pin
tmay_992-Sep-07 11:21
tmay_992-Sep-07 11:21 
GeneralRe: I have a question about retrieve a window handle at mouse position. Pin
bob169722-Sep-07 13:37
bob169722-Sep-07 13:37 
GeneralRe: I have a question about retrieve a window handle at mouse position. Pin
bob169722-Sep-07 13:41
bob169722-Sep-07 13:41 
GeneralRe: I have a question about retrieve a window handle at mouse position. Pin
bob169722-Sep-07 13:48
bob169722-Sep-07 13:48 
GeneralRe: I have a question about retrieve a window handle at mouse position. Pin
tmay_992-Sep-07 14:29
tmay_992-Sep-07 14:29 
QuestionProblems with the OEM/DOS Font "Terminal" in an RTF View Pin
CrocodileBuck1-Sep-07 23:22
CrocodileBuck1-Sep-07 23:22 
Hi Wink | ;) ,

i built an SDI Project (RTFView) and i want to edit displayed Text in the fonttype "Terminal" (OEM/DOS Font).
I try this with the CFONTDialog. I can now change the text in every fonttype but not in "Terminal".
Do yo know how i can do this ? Is there a tut or a Code snippet or can you explain how i can fix this Problem ?

Here is my code:

[CODE]
void CTereader0004View::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
CTereader0004Doc *pDoc = GetDocument ();

CRichEditCtrl& rCtrl = GetRichEditCtrl(); // Pointer auf das RichEditControl erstellen um dessen Funktionen zu nutzen
CHARFORMAT cfm; // Struktur die die Aktionen der Selektion enthält/ CFont myFont;

rCtrl.ReplaceSel(pDoc->cstrAusgabe);
rCtrl.SetSel(0,482);

cfm.cbSize = sizeof(CHARFORMAT); // Funktionen
cfm.dwMask = CFM_BOLD; // des RichEditCONTROLS zur
cfm.dwEffects = CFM_BOLD; // formatierten Darstellung benutzen

rCtrl.SetSelectionCharFormat (cfm); // Aktionen der Selektion ausführen
rCtrl.SetSel (0,0);

rCtrl.SetModify(FALSE);
}


void CTereader0004View::OnFontChoose()
{
CFontDialog fontDlg;
CFont *m_font = new CFont;

if (fontDlg.DoModal())
{
m_font->CreateFont (fontDlg.GetSize() / 7.25
,NULL
,0
,0
,fontDlg.GetWeight ()
,fontDlg.IsItalic ()
,fontDlg.IsUnderline ()
,fontDlg.IsStrikeOut ()
,DEFAULT_CHARSET
,OUT_DEFAULT_PRECIS
,0
,DEFAULT_QUALITY
,DEFAULT_PITCH
,fontDlg.GetFaceName ());
}

CRichEditCtrl& rCtrl = GetRichEditCtrl(); // Pointer auf das RichEditControl erstellen um dessen Funktionen zu nutzen
CHARFORMAT cfm;
rCtrl.SetFont (m_font);

}

[/CODE]


many many thx
CrocBuck
AnswerRe: Problems with the OEM/DOS Font "Terminal" in an RTF View Pin
CrocodileBuck1-Sep-07 23:41
CrocodileBuck1-Sep-07 23:41 
QuestionVisual Studio Express on a disc? Pin
devvvy1-Sep-07 20:54
devvvy1-Sep-07 20:54 
AnswerRe: Visual Studio Express on a disc? Pin
Christian Graus2-Sep-07 9:02
protectorChristian Graus2-Sep-07 9:02 
GeneralRe: Visual Studio Express on a disc? Pin
devvvy2-Sep-07 15:10
devvvy2-Sep-07 15:10 

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.