Click here to Skip to main content
15,889,867 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: OnHScroll --- further question Pin
Ravi Bhavnani20-Oct-03 10:07
professionalRavi Bhavnani20-Oct-03 10:07 
GeneralRe: OnHScroll --- further question Pin
Rafael Fernández López20-Oct-03 6:34
Rafael Fernández López20-Oct-03 6:34 
Generalaccelerators and mdi Pin
godzooky20-Oct-03 4:35
godzooky20-Oct-03 4:35 
GeneralRe: accelerators and mdi Pin
Ravi Bhavnani20-Oct-03 6:16
professionalRavi Bhavnani20-Oct-03 6:16 
GeneralRe: accelerators and mdi Pin
godzooky20-Oct-03 7:06
godzooky20-Oct-03 7:06 
GeneralRe: accelerators and mdi Pin
Ravi Bhavnani20-Oct-03 7:12
professionalRavi Bhavnani20-Oct-03 7:12 
GeneralRe: accelerators and mdi Pin
godzooky21-Oct-03 2:31
godzooky21-Oct-03 2:31 
GeneralHelp w/ MSI access in VC++ Pin
badsmonkey20-Oct-03 4:24
badsmonkey20-Oct-03 4:24 
GeneralRe: Help w/ MSI access in VC++ Pin
Michael P Butler20-Oct-03 4:42
Michael P Butler20-Oct-03 4:42 
GeneralRe: Help w/ MSI access in VC++ Pin
badsmonkey20-Oct-03 5:18
badsmonkey20-Oct-03 5:18 
GeneralTextArea like in Word Pin
huub20-Oct-03 4:20
huub20-Oct-03 4:20 
GeneralCMDIChildWnd and close-all functionality q. Pin
Maximilien20-Oct-03 3:35
Maximilien20-Oct-03 3:35 
GeneralUNICODE Pin
sinanswedani20-Oct-03 3:13
sinanswedani20-Oct-03 3:13 

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.