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.

MOUSE_CHILD_FUNCT correction

Featured Replies

Since with this MACRO:

#define	MOUSE_CHILD_FUNCT(x, y, w, h, cursor, mouse_flags, function)	{MOUSE_RECT_CHILD, {x, y, w, h}, cursor, helpid, mouse_flags, 0, function, NULL},

(which mysteriously omits helpid in the formal parameters)and this code:

MOUSE_BEGIN( switch_strobe_mouse_rect, HELPID_GAUGE_LIGHT_SWITCH_STROBE, 0, 0 )	MOUSE_CHILD_FUNCT( 0, 0, 43, 73, CURSOR_UPARROW, MOUSE_LEFTSINGLE, switch_strobe_mcb)MOUSE_END

You get this error:

B206B3.Switch_Strobe.c(62) : error C2065: 'helpid' : undeclared identifier

I'm thinking this redefinition of the MACRO fixes it:

#define	MOUSE_CHILD_FUNCT(x, y, w, h, cursor, mouse_flags, function, helpid)	{MOUSE_RECT_CHILD, {x, y, w, h}, cursor, helpid, mouse_flags, 0, function, NULL},

by then using this code:

MOUSE_BEGIN( switch_strobe_mouse_rect, HELPID_GAUGE_LIGHT_SWITCH_STROBE, 0, 0 )	MOUSE_CHILD_FUNCT( 0, 0, 43, 73, CURSOR_UPARROW, MOUSE_LEFTSINGLE, switch_strobe_mcb, HELPID_GAUGE_LIGHT_SWITCH_STROBE)MOUSE_END

Comments?

The original version of that macro works for me without any problems.#define MOUSE_CHILD_FUNCT( x, y, w, h, cursor, mouse_flags, function ) {MOUSE_RECT_CHILD, {x, y, w, h}, cursor, HELP_NONE, mouse_flags, 0, function, NULL},

I use Visual Studio .NET 2003 btw. May be it's a compiler thing.

Try this:MOUSE_BEGIN(switch_strobe_mouse_rect,HELP_NONE, 0, 0 ) MOUSE_PARENT_BEGIN(0,0,43,73,HELPID_GAUGE_LIGHT_SWITCH_STROBE) MOUSE_CHILD_FUNCT(0,0,43,73,CURSOR_UPARROW, MOUSE_LEFTSINGLE, switch_strobe_mcb) MOUSE_PARENT_ENDMOUSE_END

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.