This is the mail archive of the cygwin-apps mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH setup] Make Enter in the user URL box cause ADD instead of NEXT

On 08/12/2017 14:47, Ken Brown wrote:
On 12/7/2017 11:55 PM, Brian Inglis wrote:
On 2017-12-07 13:46, Ken Brown wrote:
In my testing, 'Next' does indeed become the default button after I click
outside of the textbox, but there's no visual indication of this.
( mentions a different situation where button highlighting doesn't accurately reflect the default button.  In that case it suggests sending a BM_SETSTYLE message to
change the border style.
I looked at the documentation for BM_SETSTYLE, but it wasn't obvious to me what
do do.

Seems like you want to change the button state not style - checking around you
might want to use Button_SetState macro or BM_SETSTATE message TRUE to
highlight, FALSE to reset:

No, 'state' is the highlight when the button is pressed, which is different to the outline 'style' when the button is the default (ofc, MSDN documentation is as clear as mud, as usual)

Thanks for the suggestions, but I tried various BM_SETSTATE and BM_SETSTYLE messages, and I couldn't find anything that worked: 'Next' remained unhighlighted.

The trick here, as you might notice from the patch in my reply, is that there's a window hierarchy involved: the IDD_CHOOSE window is embedded in the propsheet window, which owns the 'next' control.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]