Edit Control
-
Hi Have created a Editbox derived from CEdit and a spin control. The editbox is attached with Spin control. There should be time value in Edit box and the value (hr ,min ,AM/PM) should increase or decrease according to up and Down arrow of the spin control. Can anyone plese help me how to increse or deecrease the particular selection using spin control. any help is appriciated.. Thanks..
-
Hi Have created a Editbox derived from CEdit and a spin control. The editbox is attached with Spin control. There should be time value in Edit box and the value (hr ,min ,AM/PM) should increase or decrease according to up and Down arrow of the spin control. Can anyone plese help me how to increse or deecrease the particular selection using spin control. any help is appriciated.. Thanks..
-
Why dont you use the DateTimeControl instead of edit box?
nave [My Articles] [My Blog]
-
I need to customiza the control. There will be some image on up and down arrow of the spin control and also some gradient effect shud be there in edit box. Is these thigs are possibe in datetimeControl ? if ys then please guide me hw to do ? Thanks..
AbhiHcl wrote:
There will be some image on up and down arrow of the spin control
If you have customised a normal spin control, you can customise, the spin in the Date time picker also. The spin control is actually a child of the Date time picker and you can get the handle of that spin control like
HWND hSpin = GetWindow( hDateTimerPicker, GW_CHILD );
. Then you can subclass it.AbhiHcl wrote:
and also some gradient effect shud be there in edit box.
How did you plan to do that? Try the same will work in Date time picker also..
nave [My Articles] [My Blog]
-
Hi Have created a Editbox derived from CEdit and a spin control. The editbox is attached with Spin control. There should be time value in Edit box and the value (hr ,min ,AM/PM) should increase or decrease according to up and Down arrow of the spin control. Can anyone plese help me how to increse or deecrease the particular selection using spin control. any help is appriciated.. Thanks..
To get the text portion currently selected? See CEdit::GetSel.
-
AbhiHcl wrote:
There will be some image on up and down arrow of the spin control
If you have customised a normal spin control, you can customise, the spin in the Date time picker also. The spin control is actually a child of the Date time picker and you can get the handle of that spin control like
HWND hSpin = GetWindow( hDateTimerPicker, GW_CHILD );
. Then you can subclass it.AbhiHcl wrote:
and also some gradient effect shud be there in edit box.
How did you plan to do that? Try the same will work in Date time picker also..
nave [My Articles] [My Blog]
-
To get the text portion currently selected? See CEdit::GetSel.
-
GetWindow() takes only one parameter as HWnd. I m not clear how to proceed.. Can u plz send me some sample code..plzzz...
-
CEdit::GetSel() return DWORD. and I am not sure how to convert the value as string and then iin int. bcoz I need to increment and decrement that value, what ever is selected. Could u plz help me out for this logic.