Click here to Skip to main content
15,910,872 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: what is the use of "pOldPen" here? Pin
bloodwinner22-Sep-06 11:30
bloodwinner22-Sep-06 11:30 
GeneralRe: what is the use of "pOldPen" here? [modified] Pin
Rob Caldecott22-Sep-06 12:21
Rob Caldecott22-Sep-06 12:21 
GeneralRe: what is the use of "pOldPen" here? Pin
Jörgen Sigvardsson22-Sep-06 14:25
Jörgen Sigvardsson22-Sep-06 14:25 
GeneralRe: SaveState()? Pin
PJ Arends22-Sep-06 16:07
professionalPJ Arends22-Sep-06 16:07 
GeneralRe: SaveState()? Pin
Jörgen Sigvardsson22-Sep-06 22:27
Jörgen Sigvardsson22-Sep-06 22:27 
GeneralRe: SaveState()? Pin
Rob Caldecott22-Sep-06 23:47
Rob Caldecott22-Sep-06 23:47 
GeneralRe: SaveState()? Pin
Hamid_RT23-Sep-06 8:57
Hamid_RT23-Sep-06 8:57 
QuestionWhich slider is active in dialog? Pin
Oliver12322-Sep-06 11:10
Oliver12322-Sep-06 11:10 
How do I determine which CSlider is sending a message?
1. Dialog CExoSliderDlg with two sliders and two edit boxes.
2. Both sliders work, and both deliver nPos which is used to update edit box variable m_SliderValue.
3. I want IDC_SLIDER to update m_SliderValue
4. I want IDC_SLIDER2 to update m_SliderValue2.
5. I think CScrollBar* pScrollBar can tell me which slider is active.
6. I don't know how to determine which slider is active. How to do it?

IDC_SLIDER_VALUE CString m_SliderValue
IDC_SLIDER_VALUE2 CString m_SliderValue2
IDC_SLIDER CSliderCtrl m_Slider
IDC_SLIDER2 CSliderCtrl m_Slider2


void CExoSliderDlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
if(nSBCode == SB_THUMBPOSITION)
{
m_SliderValue.Format("%ld", nPos);
UpdateData(false);
}
else
{
CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
}
}
AnswerRe: Which slider is active in dialog? Pin
David Crow22-Sep-06 11:21
David Crow22-Sep-06 11:21 
GeneralRe: Which slider is active in dialog? Pin
Oliver12322-Sep-06 11:37
Oliver12322-Sep-06 11:37 
GeneralRe: Which slider is active in dialog? [modified] Pin
Oliver12322-Sep-06 14:55
Oliver12322-Sep-06 14:55 
GeneralOff topic: < and > Pin
Jörgen Sigvardsson22-Sep-06 15:21
Jörgen Sigvardsson22-Sep-06 15:21 
GeneralRe: Which slider is active in dialog? Pin
David Crow25-Sep-06 2:51
David Crow25-Sep-06 2:51 
QuestionRe: A stub for ::GetSystemMetrics Pin
David Crow22-Sep-06 10:40
David Crow22-Sep-06 10:40 
QuestionRe: dialog box menu Pin
mla15422-Sep-06 10:32
mla15422-Sep-06 10:32 
AnswerRe: dialog box menu Pin
David Crow22-Sep-06 10:36
David Crow22-Sep-06 10:36 
AnswerRe: dialog box menu Pin
Kiran Pinjala22-Sep-06 19:16
Kiran Pinjala22-Sep-06 19:16 
GeneralRe: dialog box menu - It worked! Pin
mla15425-Sep-06 3:04
mla15425-Sep-06 3:04 
AnswerRe: dialog box menu Pin
ThatsAlok23-Sep-06 6:08
ThatsAlok23-Sep-06 6:08 
QuestionProblem with Scrolling in CListView Pin
Mohammad A Gdeisat22-Sep-06 10:01
Mohammad A Gdeisat22-Sep-06 10:01 
AnswerRe: Problem with Scrolling in CListView Pin
PJ Arends22-Sep-06 16:14
professionalPJ Arends22-Sep-06 16:14 
GeneralRe: Problem with Scrolling in CListView Pin
Mohammad A Gdeisat22-Sep-06 21:39
Mohammad A Gdeisat22-Sep-06 21:39 
Questionwhat is the use of "&" here Pin
bloodwinner22-Sep-06 10:00
bloodwinner22-Sep-06 10:00 
AnswerRe: what is the use of "&" here Pin
David Crow22-Sep-06 10:19
David Crow22-Sep-06 10:19 
GeneralRe: what is the use of "&" here Pin
bloodwinner22-Sep-06 11:31
bloodwinner22-Sep-06 11:31 

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.