Click here to Skip to main content
15,912,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionicon disappears in win 2k Pin
ghunzel0612-Apr-07 17:25
ghunzel0612-Apr-07 17:25 
AnswerRe: icon disappears in win 2k Pin
Arman S.12-Apr-07 20:18
Arman S.12-Apr-07 20:18 
QuestionDevice List Pin
Xarzu12-Apr-07 16:11
Xarzu12-Apr-07 16:11 
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 
As with any dialog, some member variables linked to the dialogs slider controls in the DoDataExchange should be sufficient. After the CDialog derived class is instantiated, have the view set the dialogs members. Once DoModal returns with IDOK, but before the CDialog derived class goes out of scope, your view code can get the last position of the slider and update its controls accordingly.

/*
Obviously, there will be more to it than this but the basic idea is the same
*/

void CTestsliderView::OnShowDialog()
{
// TODO: Add your command handler code here
CSliderDialog dlg;
dlg.m_nSlider=15;

if (dlg.DoModal()==IDOK) {

TRACE("New Slider pos = %d\n",dlg.m_nSlider);
}
}
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 
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 

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.