PlanetSquires Forums

Support Forums => José Roca Software => Topic started by: James Fuller on March 27, 2017, 09:30:37 AM

Title: Button_SetDontClick
Post by: James Fuller on March 27, 2017, 09:30:37 AM
Jose,
  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
Title: Re: Button_SetDontClick
Post by: José Roca on March 27, 2017, 09:44:54 AM
I know, but the FB headers don't support &H600

From winuser.bi


#if _WIN32_WINNT = &h0602
const BM_SETDONTCLICK = &h00f8
#endif


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


#define _WIN32_WINNT &h0602