Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

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.

GDI Gauges

Featured Replies

Hi,I had to make a little gauge with GDI because it doesn't work on the "bitmap-way".No problem with the gauge, it works fine.But I've noticed something 'strange'.I can't get a GDI Gauge work if there is just 1 MAKE_STATIC used. It just works when I've got 2 MAKE_STATICs in the gauge.To get the pelement for the 2nd MAKE_STATIC, I wrote:PELEMENT_STATIC_IMAGE pelement = (PELEMENT_STATIC_IMAGE)(pgauge->elements_list[0]->next_element[0]); If there's just 1 MAKE_STATIC, shouldn't that just be enough?:PELEMENT_STATIC_IMAGE pelement = (PELEMENT_STATIC_IMAGE)(pgauge); Another question: What does the option "IMAGE_CREATE_DIBSECTION" in MAKE_STATIC mean?Thanks in advance,Harry

PELEMENT_STATIC_IMAGE pelement = (PELEMENT_STATIC_IMAGE)( pgauge->elements_list<0> ) ;

Thanks!Regards,Harry

  • Moderator

>Another question: What does the option>"IMAGE_CREATE_DIBSECTION" in MAKE_STATIC mean?Harry, the DIBSECTION is a "Device Independent Bitmap Section..." It creates the "bitmap drawing surface" which is referenced by the HDC (Handle to Device Context).

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

>>Another question: What does the option>>"IMAGE_CREATE_DIBSECTION" in MAKE_STATIC mean?>>Harry, the DIBSECTION is a "Device Independent Bitmap>Section..." It creates the "bitmap drawing surface" which is>referenced by the HDC (Handle to Device Context).Thanks once again :-)Regards,Harry

Create an account or sign in to comment

Account

Navigation

Search

Search

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.