[RESOLVED] how to handle spincontrol
Hi,
Seems like editbox allready have a spincontrol attached as default if one use WS_VSCROLL in style while creating the editbox window.
No WM_VSCROLL message is being sent when clicking on arrow buttons. I read one have to attach spincontrol buddy, but spincontrol is allready there?!? (like pointed out above)
Can't find any good example on web how to handle spincontrol messages. I tried in Notify and Command without luck.
How do I handle these up/down arrows?
Re: how to handle spincontrol
Re: how to handle spincontrol
Re: [RESOLVED] how to handle spincontrol
Quote:
Originally Posted by
ruderudy
Seems like editbox allready have a spincontrol attached as default if one use WS_VSCROLL in style while creating the editbox window.
that creates a vertical scrollbar, not a spin control.
they're different controls doing different things, although I guess you could abuse a scrollbar to give you the effect of a spin control (you'll need to do this yourself). It's still a bad idea to do it that way, but if you really HAD to do it that way, I suppose you could.
1 Attachment(s)
Re: [RESOLVED] how to handle spincontrol
Quote:
Originally Posted by
ruderudy
How do I handle these up/down arrows?
As OReubens already said, WS_VSCROLL style does not create spin control, it adds a scrollbar instead. Scrollbar sends WM_VSCROLL messages to its parent, which is the edit box. So, the messages have to be handled there. See the sample attached here.