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.

Empfohlene Antworten

Veröffentlicht

Hi leute, könnt ihr mir helfen?

Ich hab in meinen Resourcen ein Bitmap gespeichert und wollte dieses jetzt ausdrucken....

habs folgendermaßen in meine OnPrint eingefügt

HBITMAP bitmap, oldbitmap;

HDC hdcbitmap;

bitmap = LoadBitmap (AfxGetResourceHandle(), MAKEINTRESOURCE(IDB_BITMAP1));

if (!bitmap) return;

hdcbitmap = CreateCompatibleDC (NULL);

oldbitmap = (HBITMAP)SelectObject (hdcbitmap, bitmap);

BitBlt (pDC->m_hDC, 4000,400,1024,768, hdcbitmap,0,0, SRCCOPY);

aber das Bitmap wird so klein ausgedruckt....

hab versucht den 4 und 5ten Parameter von BitBlt zu erhöhen, ohne erfolg

auch mit dem 7ten und 8ten parameter gings nicht....

brauch ich dazu eine andere methode um ein bitmap erst zu vergrößern??

Oder muß ich beim 9ten parameter einen anderen Wert übergeben??

komm nicht weiter !

hoff ihr könnt mir helfen

MFG SwordMaster

  • 2 Wochen später...
  • Autor

jetzt komm ich mir langsam echt ********t vor

hab jetzt folgenden code in meiner OnPrint

HBITMAP bitmap, oldbitmap;

HDC hdcbitmap;

bitmap = LoadBitmap (AfxGetResourceHandle(), MAKEINTRESOURCE(IDB_BITMAP1));

if (!bitmap) return;

hdcbitmap = CreateCompatibleDC (NULL);

oldbitmap = (HBITMAP)SelectObject (hdcbitmap, bitmap);

StretchBlt (pDC->m_hDC, 4000,150,600,300, hdcbitmap,0,0,200,200, SRCCOPY);

ich verstehs nicht....

in der Seitenansicht seh ich das bild

und ich konnte es auch schon ausdrucken aber jetzt gehts auf einmal nicht mehr...

hab sonst keinen code drinnenstehen, nur diese paar zeilen...

:( ich verstehs nicht, könnt ihr mir helfen?

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.