News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

SBM_SETPOS

Started by msmith, February 06, 2006, 06:34:16 AM

Previous topic - Next topic

msmith

I have everything working with my updown (spinner) control except that the "buddy" edit control does not respond when I send the SBM_SETPOS to the updown control.

SBM_GETPOS works fine and reads the edit control as described in the docs, giving an integer representing the value displayed in the edit. The edit also increments and decrements as it should from the updown buttons.

MichaelW

This might be a somewhat stupid question, but is the updown control handling SBM_SETPOS?

eschew obfuscation

Tedd

Is the spinner telling the edit control to update/refresh as well?
No snowflake in an avalanche feels responsible.

msmith

Thank you Michael and Tedd,

I found the problem. I had lparam and wparam reversed.

I just finished looking at TBM_SETPOS, UDM_SETPOS, PBM_SETPOS, and SBM_SETPOS, and believe it or not all 4 have a different lparam/wparam sequence even though all four functions basically perform the same thing. You coundn't make it more irregular if your tried. For those of you familiar with compiler design, this is a real downside because you cannot have a template for code generation when nothing is orthagonal.

Mike