Click here to Skip to main content
15,920,801 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sent data from Doc to dialog Pin
mafuza21-Jun-05 17:21
mafuza21-Jun-05 17:21 
GeneralRe: Sent data from Doc to dialog Pin
Nilesh K.21-Jun-05 17:50
Nilesh K.21-Jun-05 17:50 
GeneralPicture on dialog based application Pin
Rostfrei15-Jun-05 22:48
Rostfrei15-Jun-05 22:48 
GeneralRe: Picture on dialog based application Pin
Nilesh K.15-Jun-05 23:06
Nilesh K.15-Jun-05 23:06 
GeneralRe: Picture on dialog based application Pin
Rostfrei15-Jun-05 23:32
Rostfrei15-Jun-05 23:32 
GeneralRe: Picture on dialog based application Pin
toxcct16-Jun-05 0:14
toxcct16-Jun-05 0:14 
GeneralRe: Picture on dialog based application Pin
Nilesh K.16-Jun-05 0:45
Nilesh K.16-Jun-05 0:45 
QuestionHow to set TicFreq in a dialog box? Pls Help Pin
Member 191502415-Jun-05 22:25
Member 191502415-Jun-05 22:25 
D'Oh! | :doh: I created 2 sliders in my dialog box. The problem now is that i can only set the range in whole number.eg (0-100). I need to set it in float .eg (0-1) Can anyone help me out?Below is part of my program.

BOOL GrowDialogBox::OnInitDialog()
{
CDialog::OnInitDialog();

// TODO: Add extra initialization here
m_slider3.SetRange(0,1);
m_slider3.SetTicFreq(0.01);
m_slider4.SetRange(0,1);
m_slider4.SetTicFreq(0.01);
minnSliderPos = 0;
maxxSliderPos = 1;
// For displaying numbers on the box
s3.Format("%f",0); // Set it to 0 for min and 1 for max
m_EDIT3.SetWindowText(s3);
s4.Format("%f",1);
m_EDIT4.SetWindowText(s4);

return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}

My warning received is
warning C4244: 'argument' : conversion from 'const double' to 'int', possible loss of data

AnswerRe: How to set TicFreq in a dialog box? Pls Help Pin
RChin15-Jun-05 22:42
RChin15-Jun-05 22:42 
GeneralWhy Release version don't Run. Pin
tranglt15-Jun-05 22:02
tranglt15-Jun-05 22:02 
GeneralRe: Why Release version don't Run. Pin
One Stone15-Jun-05 22:14
One Stone15-Jun-05 22:14 
GeneralRe: Why Release version don't Run. Pin
Nilesh K.15-Jun-05 22:59
Nilesh K.15-Jun-05 22:59 
GeneralAllocConsole Pin
mcsherry15-Jun-05 21:49
mcsherry15-Jun-05 21:49 
GeneralRe: AllocConsole Pin
One Stone15-Jun-05 21:55
One Stone15-Jun-05 21:55 
GeneralRe: AllocConsole Pin
mcsherry15-Jun-05 22:12
mcsherry15-Jun-05 22:12 
GeneralCreate Trial Version of an appliation Pin
Sudhir Mangla15-Jun-05 21:33
professionalSudhir Mangla15-Jun-05 21:33 
GeneralRe: Create Trial Version of an appliation Pin
Nilesh K.15-Jun-05 22:09
Nilesh K.15-Jun-05 22:09 
GeneralRe: Create Trial Version of an appliation Pin
P-Rex15-Jun-05 22:10
P-Rex15-Jun-05 22:10 
GeneralRe: Create Trial Version of an appliation Pin
Bob Stanneveld15-Jun-05 23:07
Bob Stanneveld15-Jun-05 23:07 
GeneralRe: Create Trial Version of an appliation Pin
ddmcr15-Jun-05 23:34
ddmcr15-Jun-05 23:34 
GeneralRe: Create Trial Version of an appliation Pin
Bob Stanneveld15-Jun-05 23:47
Bob Stanneveld15-Jun-05 23:47 
GeneralRe: Create Trial Version of an appliation Pin
ddmcr16-Jun-05 0:01
ddmcr16-Jun-05 0:01 
GeneralRe: Create Trial Version of an appliation Pin
Bob Stanneveld16-Jun-05 0:12
Bob Stanneveld16-Jun-05 0:12 
GeneralRe: Create Trial Version of an appliation Pin
ddmcr16-Jun-05 0:25
ddmcr16-Jun-05 0:25 
GeneralRe: Create Trial Version of an appliation Pin
John M. Drescher16-Jun-05 4:28
John M. Drescher16-Jun-05 4:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.