1 / 7

CFontdialog

CFontdialog. HPS. Referat. Prof. Dr. Javier Conde. CFontdialog. MFC-Anwenduns-Assistent Pfad und Projektname bestimmen Ok klicken. - Dialogbasierend - Weiter - Dann beim nächstem Fenster Fertigstellen und Ok drücken. CFontdialog. Member-Variablen :.

kaoru
Download Presentation

CFontdialog

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CFontdialog HPS Referat Prof. Dr. Javier Conde

  2. CFontdialog • MFC-Anwenduns-Assistent • Pfad und Projektname bestimmen • Ok klicken - Dialogbasierend - Weiter - Dann beim nächstem Fenster Fertigstellen und Ok drücken

  3. CFontdialog Member-Variablen: CStatic : m_cAusgabe //man braucht es um die liste aufzurufen CString : m_sAusgabe // dies braucht man für die Textausgabe

  4. CFontdialog Font.CreateFont : Font ist meine Variable und wird durch CreateFont aufgerufen dlg.GetFaceName() : hiermit rufe ich das „extra“ Fenster auf

  5. CFontdialog void CCfontdialogDlg::OnAuswahl() { if(dlg.DoModal()) { CString deff; COLORREF farbe; deff = dlg.GetFaceName(); CFont Font; int fett,gr; gr = dlg.GetSize(); gr = gr/10; if(dlg.IsBold()) fett=700; else fett=400; //Parameter Font.CreateFont(gr,0,0,0,fett,dlg.IsItalic(),dlg.IsUnderline(),dlg.IsStrikeOut(), DEFAULT_CHARSET,OUT_CHARACTER_PRECIS,CLIP_CHARACTER_PRECIS, DEFAULT_QUALITY,DEFAULT_PITCH|FF_DONTCARE,deff); farbe = dlg.GetColor(); m_cAusgabe.SetFont(&Font); m_sAusgabe = "KING CONDE!!"; UpdateData(FALSE); } }

  6. CFontdialog Das Programm

  7. CFontdialog Ich habe fertig!!! Powered bei SRR und X-Club for more Infos www.x-club-party.de.vu

More Related