Конечно, можно проще: нужно твой Edit назначить т.н. buddy-window для UpDown контрола, и дальше отображение будет происходить автоматически.
| Цитата | CreateUpDownControl enables you to specify a buddy window. If you create an up-down control without using this function, you can assign a buddy window by specifying the UDS_AUTOBUDDY window style or by using the UDM_SETBUDDY message. If UDS_AUTOBUDDY is specified, the up-down control automatically selects the previous window in the z-order as its buddy window. This window might be the previous control in a dialog box template. You can use UDM_SETBUDDY to assign a specific buddy window to an up-down control. To determine an up-down control's current buddy window, use the UDM_GETBUDDY message. An up-down control and its buddy window must have the same parent window.
|
Думаю, тебе нужно почитать эту статью: MSDN->User Interface Design & Development->Window Controls->Individual Control Information->UpDown Controls. |