PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: CCbColor.inc issue  (Read 960 times)

James Fuller

  • FireFly3 Registered User
  • Senior Member
  • *
  • Posts: 276
  • FF3 User
CCbColor.inc issue
« on: August 30, 2016, 05:47:22 PM »

Jose,
  In your CCbColor.inc CCbColorProc, Set user color, and Get user color, are both get user color.

James

      ' // Set user color
      CASE CBCOL_SETUSERCOLOR
         pCbColor = CAST(CCbColor PTR, .GetPropW(hwnd, "CBCOLORPTR"))
         IF pCbColor = NULL THEN EXIT FUNCTION
         FUNCTION = pCbColor->m_UserColor
         EXIT FUNCTION

      ' // Get user color
      CASE CBCOL_GETUSERCOLOR
         pCbColor = CAST(CCbColor PTR, .GetPropW(hwnd, "CBCOLORPTR"))
         IF pCbColor = NULL THEN EXIT FUNCTION
         FUNCTION = pCbColor->m_UserColor
         EXIT FUNCTION

Logged

Josť Roca

  • Moderator
  • Master Member
  • *****
  • Posts: 3028
    • Jos
Re: CCbColor.inc issue
« Reply #1 on: August 30, 2016, 10:01:37 PM »

Yes. Change it to pCbColor->m_UserColor = wParam. I have changed it in both CCbColor and CCbColorEx for the bext release.

Thanks very much.