Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

gleiche Schrift auf dem Bildschirm und Drucker

Empfohlene Antworten

Hallochen,

ich muss ein Programm schreiben unter *** Visual C++. Da habe ich jetzt folgendes Problem:

Ich möchte gerne eine Progrämmchen haben, wo ich auf dem Bildschirm eine Textausgabe mache, welche auf diesem Bildschirm genauso aussehen soll, wie nachher auf dem Drucker. Leider will mir das nicht gelingen. siehe

Bild der Bildschirmausgabe (ca. 3kB)

http://home.arcor.de/divejbba2/Bild1.jpg

Bild der Druckerausgabe (ca. 4kB)

http://home.arcor.de/divejbba2/Bild2.jpg

Wie man sieht, erscheinen die Buchstaben an völlig unterschiedlichen Punkten. Dabei habe ich schon keine absoluten Positionierungswerte genommen, sondern arbeite mit der Klasse oder Methode "GetTextMetrics" aus "GDI: Platform SDK".

Die Textausgabe sieht bspw. so aus:

...

pDC->GetTextMetrics(&metrics);

CFont* FormelT=new CFont();

BOOL result=FormelT->CreateFont(metrics.tmHeight...);

pDC->GetTextMetrics(&metrics);

int fontheight=metrics.tmHeight,

fontwidth=metrics.tmMaxCharWidth,

...

So und nun arbeite ich bei der Positionierung der Texte schon immer relativ (also mit fontwidth und fontheigh) und nicht absolut, und trotzdem klappt es nicht!

Hat jemand vielleicht eine Ahnung, wie man soetwas hinbekommt??? Ich bin noch Newbe auf diesem Gebiet!

Vielleicht nehme ich ja auch die völlig falsche Methode?

Dringendst um Hilfe flehend

und MfG

divejbba

Ich hoffe, hier kennt sich jemand mit den schei... MFC Klassen aus!

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.