|
I created a formview project but i did not encounter this problem. The only thing i notice is that if you set the Number property to true, it will not allow you to enter decimal point. Did you change any property values for the edit control?
|
|
|
|
|
nope. I dont have the number property enabled.
I can type in a decimal point followed by numbers. but once i finish typing, the values get rounded.
I have set the maximum and minimum to be 10 and -10 respectively.
Does the value you enter remain the same as 2.4 as such when you start entering values in the other edit boxes.?
|
|
|
|
|
thathvamsi wrote: Does the value you enter remain the same as 2.4 as such when you start entering values in the other edit boxes.?
Yes, try removing the minimum and maximum limit that you have set to see if it works.
|
|
|
|
|
hello,
since i wanted to limit the range between +10 and -10 ..i had the following code inside the member function for that edit box.
void CSample2View::OnKillfocusEditMirrOS() <br />
{<br />
if (m_dMirrOS <= -10)<br />
m_dMirrOS = -10;<br />
else if (m_dMirrOS >= 10)<br />
m_dMirrOS = 10;<br />
else<br />
m_dMirrOS = m_dMirrOS;<br />
<br />
CString strMirrOS;<br />
strMirrOS.Format(STR_FMT_FLT_D,m_dMirrOS);<br />
m_editMirrOS.SetWindowText(strMirrOS);<br />
<br />
}
where, STR_FMT_FLT_D is defined as _T("%d")
when i comment out the above code inside the killfocus...(),
I can enter values with decimal points. But I want to have a upper and lower limit for my control box so that weird values doesnt get entered for that particular control.
how do i do it?
-- modified at 5:44 Tuesday 4th July, 2006
|
|
|
|
|
Your problem is at
strMirrOS.Format(STR_FMT_FLT_D,m_dMirrOS);
Since STR_FMT_FLT is defined as _T("%d"), any decimal values you try format will be rounded. Change to _T("%f"). If you want to limit to 2 decimal places, you can write as _T("%.2f").
|
|
|
|
|
Hey Weiye chen,
Thanks very much.
It solved my problem.
Thanks for helping buddy.
|
|
|
|
|
hi
I would like to retrieve information concerning the CPU temperature,Fan speed
from the motherboard, and also i want to increase the the fan speed. Where do I start?
Can any one help me?
nirmal
|
|
|
|
|
|
hi ,
i want to know how to get the ip address of a machine in the network programatically,
if i give the hostname.
thanks
-
^-^
@|@
- redCat
|
|
|
|
|
Use WSAAsyncGetHostByName()
Jubin Chawda
braindrain1@rediffmail.com
-----------------------------
Come online at:-
fitiyal@yahoo.com
|
|
|
|
|
hi,
I want to monitor the file access done in my folder.
And also wanted the time of access.
I just want to write a background process and logging the activities in my folder.
Can i do in "C" ? I beleive anything can be done in C.
Plzz Help me with
Source code (or)
some urls (or)
some useful ideas to achive this
Urs,
-Pons
-----------------------
The greatest of faults, I should say, is to be conscious of none.
-- modified at 3:34 Tuesday 4th July, 2006
|
|
|
|
|
|
U wanna do in VC++?
Jubin Chawda
braindrain1@rediffmail.com
-----------------------------
Come online at:-
fitiyal@yahoo.com
|
|
|
|
|
|
hi,
Thanks guyz for your quick responses..Michael Dunn, Jubin Chawda and WhiteSky
From the link i get a clear idea..
But i want to run my program like background process.
On pressing Ctrl+Alt+Del my program wanted to be displayed in the Process Tab rather than in the Program Tab.
I'm trying to implement in VC++ with out MFC.
Urs,
-Pons
-----------------------
The greatest of faults, I should say, is to be conscious of none.
|
|
|
|
|
An application that doesn't appear in the taskbar will not appear in the "Applications" tab in Task Manager.
|
|
|
|
|
What is the difference between exe files that created with vb compiler and other created exe?
Zo.Naderi-Iran
|
|
|
|
|
|
writing a simple program in displaying the everage of 20 floating points using a function,.this is my problem..
|
|
|
|
|
Homework?
void average(float a[])
{
float temp=0;
for ( int i=0;i<20;i++)
temp+=a[i];
printf("%f",temp/20);
}
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi all,
What is the difference between bitmap and picture?
Thanks to all.
|
|
|
|
|
Yesterday too I saw the same question.
What do you mean by picture. A picture is a broad concept. be specific with your question.
SaRath.
"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."
My Blog | Understanding State Pattern in C++
|
|
|
|
|
yes one same question!
whitesky
|
|
|
|
|
|
Actually In one Interview I faced This Question..
" What is the different bet Bitmap and Picture?
I'm also in confuse what he wants to mean with Picture...
|
|
|
|