Click here to Skip to main content
15,905,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Device List Pin
bob1697212-Apr-07 16:27
bob1697212-Apr-07 16:27 
Questionfile input help Pin
Ackmm712-Apr-07 16:08
Ackmm712-Apr-07 16:08 
AnswerRe: file input help Pin
CPallini12-Apr-07 20:56
mveCPallini12-Apr-07 20:56 
QuestionAccessing CView from CDialog MFC??? Pin
bimgot12-Apr-07 15:24
bimgot12-Apr-07 15:24 
AnswerRe: Accessing CView from CDialog MFC??? Pin
bob1697212-Apr-07 16:44
bob1697212-Apr-07 16:44 
GeneralRe: Accessing CView from CDialog MFC??? Pin
ksrameshkanth12-Apr-07 19:35
ksrameshkanth12-Apr-07 19:35 
GeneralRe: Accessing CView from CDialog MFC??? Pin
bimgot13-Apr-07 2:30
bimgot13-Apr-07 2:30 
GeneralRe: Accessing CView from CDialog MFC??? Pin
JudyL_MD13-Apr-07 2:46
JudyL_MD13-Apr-07 2:46 
You don't show code but I bet you're calling SetPos before the dialog is created. You need to do something like what you were shown originally by bob16972

CSliderDlg dlg (this);<br />
dlg.m_nSlider = <value>;    // can't use with SetPos becaues doesn't exist yet<br />
if (dlg.DoModal () == IDOK)<br />
{<br />
    //set view's slider to dlg.m_nSlider<br />
}


The actual call to SetPos should be from within the CSliderDlg's OnInitDialog. Also, you need to do something in your CSliderDlg::OnOK to put the position of the slider into the m_nSlider variable. I haven't played with sliders and DDX to know offhand if the DDX does this for you on slider controls.

Judy
GeneralRe: Accessing CView from CDialog MFC??? Pin
bob1697213-Apr-07 3:22
bob1697213-Apr-07 3:22 
GeneralRe: Accessing CView from CDialog MFC??? Pin
bimgot15-Apr-07 13:17
bimgot15-Apr-07 13:17 
QuestionCorrect way to remove old unused symbol? Pin
maxmaven12-Apr-07 11:23
maxmaven12-Apr-07 11:23 
AnswerRe: Correct way to remove old unused symbol? Pin
Ravi Bhavnani12-Apr-07 11:34
professionalRavi Bhavnani12-Apr-07 11:34 
GeneralRe: Correct way to remove old unused symbol? Pin
dburns12-Apr-07 17:10
dburns12-Apr-07 17:10 
QuestionDouble linked list is overwriting string items Pin
Yustme12-Apr-07 10:38
Yustme12-Apr-07 10:38 
AnswerRe: Double linked list is overwriting string items Pin
cp987612-Apr-07 14:15
cp987612-Apr-07 14:15 
GeneralRe: Double linked list is overwriting string items Pin
Yustme13-Apr-07 2:16
Yustme13-Apr-07 2:16 
QuestionNew to VS 2005 - How do I switch between C++ to C#? Pin
huehue12-Apr-07 8:54
huehue12-Apr-07 8:54 
AnswerRe: New to VS 2005 - How do I switch between C++ to C#? Pin
led mike12-Apr-07 9:23
led mike12-Apr-07 9:23 
AnswerRe: New to VS 2005 - How do I switch between C++ to C#? Pin
huehue12-Apr-07 10:45
huehue12-Apr-07 10:45 
AnswerRe: New to VS 2005 - How do I switch between C++ to C#? Pin
George L. Jackson12-Apr-07 11:15
George L. Jackson12-Apr-07 11:15 
GeneralRe: New to VS 2005 - How do I switch between C++ to C#? Pin
huehue12-Apr-07 11:29
huehue12-Apr-07 11:29 
GeneralRe: New to VS 2005 - How do I switch between C++ to C#? Pin
George L. Jackson12-Apr-07 11:42
George L. Jackson12-Apr-07 11:42 
QuestionHow To Load Google Toolbar For Dialog Pin
MyNothing12-Apr-07 7:10
MyNothing12-Apr-07 7:10 
AnswerRe: How To Load Google Toolbar For Dialog Pin
Reagan Conservative12-Apr-07 9:35
Reagan Conservative12-Apr-07 9:35 
Questioninstalling a program i've made Pin
Tully200312-Apr-07 6:45
Tully200312-Apr-07 6:45 

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.