Click here to Skip to main content
15,919,774 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: updating Text Pin
Michael P Butler20-Oct-03 6:37
Michael P Butler20-Oct-03 6:37 
GeneralRe: updating Text Pin
K. Shaffer20-Oct-03 6:46
K. Shaffer20-Oct-03 6:46 
GeneralRe: updating Text Pin
Rafael Fernández López20-Oct-03 8:12
Rafael Fernández López20-Oct-03 8:12 
QuestionHow to determine the focused control? Pin
User-37793620-Oct-03 6:23
User-37793620-Oct-03 6:23 
AnswerRe: How to determine the focused control? Pin
Michael P Butler20-Oct-03 6:40
Michael P Butler20-Oct-03 6:40 
AnswerRe: How to determine the focused control? Pin
Rafael Fernández López20-Oct-03 6:40
Rafael Fernández López20-Oct-03 6:40 
GeneralRe: How to determine the focused control? Pin
User-37793621-Oct-03 6:56
User-37793621-Oct-03 6:56 
GeneralBandwidth Limiting Pin
Blade[DMS]20-Oct-03 6:02
Blade[DMS]20-Oct-03 6:02 
GeneralRe: Bandwidth Limiting Pin
Trollslayer20-Oct-03 6:24
mentorTrollslayer20-Oct-03 6:24 
GeneralRe: Bandwidth Limiting Pin
Blade[DMS]20-Oct-03 6:40
Blade[DMS]20-Oct-03 6:40 
GeneralRe: Bandwidth Limiting Pin
Libish Varghese Jacob18-Jul-12 1:07
Libish Varghese Jacob18-Jul-12 1:07 
GeneralDocument class Pin
Keck20-Oct-03 5:28
Keck20-Oct-03 5:28 
GeneralRe: Document class Pin
John M. Drescher20-Oct-03 5:44
John M. Drescher20-Oct-03 5:44 
GeneralRe: Document class Pin
Keck20-Oct-03 6:12
Keck20-Oct-03 6:12 
QuestionHow to block Net access Pin
Mourad DEBBAH20-Oct-03 4:55
Mourad DEBBAH20-Oct-03 4:55 
AnswerRe: How to block Net access Pin
Joe Woodbury20-Oct-03 6:05
professionalJoe Woodbury20-Oct-03 6:05 
AnswerRe: How to block Net access Pin
Ravi Bhavnani20-Oct-03 6:32
professionalRavi Bhavnani20-Oct-03 6:32 
AnswerRe: How to block Net access Pin
David Crow20-Oct-03 7:44
David Crow20-Oct-03 7:44 
GeneralRe: How to block Net access Pin
Mourad DEBBAH21-Oct-03 5:41
Mourad DEBBAH21-Oct-03 5:41 
QuestionOnHScroll for CSliderCtrl runs 3 times - why? Pin
ns20-Oct-03 4:43
ns20-Oct-03 4:43 
AnswerOnHScroll --- further question Pin
ns20-Oct-03 5:28
ns20-Oct-03 5:28 
I saw that the third time, it steps in with nPos coming in as 0!!! Even though I scrolled right quite a bit, and nPos is NOT 0!. The nSBCode is END_SCROLL. Got around the problem by skipping the third step-in, but in another part of my project where the slider and SetBrightness() function both are in the same class (here they are in two different classes), the third time also, nPos is non-zero and really what it should be.

void CDlgSettings::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{
	pSld = (CSliderCtrl*)pScrollBar;

	if (pSld !=0 && nSBCode != SB_ENDSCROLL)
	{


		if(*pSld == m_sliderBright)
		{
			m_pParentWnd->SetBrightness(nPos);
		}
		
	m_pParentWnd->DisplayLocal();
	
	}

	CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
	
}


thanks,
ns
GeneralRe: OnHScroll --- further question Pin
Ravi Bhavnani20-Oct-03 6:15
professionalRavi Bhavnani20-Oct-03 6:15 
GeneralRe: OnHScroll --- further question Pin
ns20-Oct-03 7:49
ns20-Oct-03 7:49 
GeneralRe: OnHScroll --- further question Pin
Ravi Bhavnani20-Oct-03 7:56
professionalRavi Bhavnani20-Oct-03 7:56 
GeneralRe: OnHScroll --- further question Pin
ns20-Oct-03 9:59
ns20-Oct-03 9:59 

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.