PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Button_SetDontClick  (Read 261 times)

James Fuller

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 272
  • FF3 User
Button_SetDontClick
« on: March 27, 2017, 09:00:37 AM »

Josť,
  I just noticed this in AfxCtl:
#if _WIN32_WINNT = &h0602
PRIVATE SUB Button_SetDontClick (BYVAL hButton AS HWND, BYVAL bState AS BOOL)
   SendMessageW(hButton, BM_SETDONTCLICK, cast(WPARAM, bState), 0)
END SUB
#endif

Is limiting this function to Windows 8 and above your intention?
BM_SETDONTCLICK has been available since vista:
https://msdn.microsoft.com/en-us/library/windows/desktop/bb775990(v=vs.85).aspx

James
Logged

Josť Roca

  • Moderator
  • Master FireFly Member
  • *****
  • Posts: 2732
    • Josť Roca Software
Re: Button_SetDontClick
« Reply #1 on: March 27, 2017, 09:14:54 AM »

I know, but the FB headers don't support &H600

From winuser.bi

Code: [Select]
#if _WIN32_WINNT = &h0602
const BM_SETDONTCLICK = &h00f8
#endif

If you're going to use something that requires Vista or superior, use:

Code: [Select]
#define _WIN32_WINNT &h0602
« Last Edit: March 27, 2017, 09:28:50 AM by Josť Roca »
Logged