Hi all I hope in an answer that could help me about my problem.
I'm creating a GUI in Visual C++ .NET and I'd like to split the "Spin
Control" in two buttons, has someone some ideas to do this?
The normal spin control
------
| up |
-------
|down|
-------
I would like to create this
------
| UP |
------
---------
| DOWN |
---------
Here there's the code of my "EditBox" and "Spin Control" (normal):
> ((CSpinButtonCtrl *)GetDlgItem(IDC_SPIN_TEST))->SetRange(0, 26);
> ((CSpinButtonCtrl *)GetDlgItem(IDC_SPIN_TEST))->SetPos(0);
> GetDlgItem(IDC_EDITBOXTEXT)->SetWindowText("A");
ismailp - 27 May 2005 01:56 GMT
I don't think there exists a simple way. Because control draws those
buttons, and I don't think you can intervent that default behavior.
Theoretically, I can suggest you to try to use owner drawing. The best
is, I think, rolling-your-own split-spin control. I don't think it is
hard to implement.
Ismail