tags:

views:

50

answers:

2

Hi,

I'm trying to draw a CSpinButtonCtrl as a buddy of an edit box in Windows 7. When my CEdit window is 12 dialog units high, the spin buttons are scaled really badly and the top border is clipped off.

spin fail

This looks pretty ugly. How can I get around this, or must I restrict my CEdit controls to be 14 dialog units high?

My controls are declared thusly:

EDITTEXT        IDC_LOWER_EDIT,51,20,63,12,ES_MULTILINE | ES_WANTRETURN,WS_EX_RIGHT
CONTROL         "",IDC_LOWER_SPIN,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS,104,17,11,12

I've tried resizing using MoveWindow, but that doesn't help. Any ideas?

+1  A: 

I think I would go for #2 - are you that pressed for screen space?

Jeff
Many of my controls are quite busy and I'm trying to cut down on vertical real estate where I can. Incidentally my UI is all replicated on Mac OS X, where there is a standard "small" size of control (but no spin-control as standard, so those are rarely used).
north5