Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

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.

GdipDrawImage returns 0 ,but the picture doesn't show on my pictur

Featured Replies

Posted

33280g7.jpg


I'm using plain C to call these functions of GDI+ ,and response WM_PAINT with this function ,the last call of GdipDrawImage returns 0, it means success ,but on my picture control I can not find my picture on it.source.txt


i see u posted this everywhere & like everyone tells u, you're trying to use c++ features in c. u arent even using proper gdi+ objects in that code amungst other errors.


 


if all u want to do is load a bitmap to a hwnd in raw C, id use gdi, u can use BitBlt to cache a bitmap, load your image via fopen(), cut off the header, and memcpy the pixels in. there are C sources here that will get u started.

Create an account or sign in to comment

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.