Click here to Skip to main content
15,902,909 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDynamically created virtual email addresses... Pin
Matt Gullett11-Jun-03 14:14
Matt Gullett11-Jun-03 14:14 
GeneralTreeView and Random Crashes Pin
adonisv11-Jun-03 12:58
adonisv11-Jun-03 12:58 
GeneralRe: TreeView and Random Crashes Pin
Stlan11-Jun-03 19:45
Stlan11-Jun-03 19:45 
GeneralRe: TreeView and Random Crashes Pin
Tibor Blazko11-Jun-03 19:49
Tibor Blazko11-Jun-03 19:49 
GeneralRe: TreeView and Random Crashes Pin
peterchen11-Jun-03 23:38
peterchen11-Jun-03 23:38 
GeneralGot it working! Pin
adonisv12-Jun-03 15:46
adonisv12-Jun-03 15:46 
GeneralRe: Got it working! Pin
peterchen12-Jun-03 21:01
peterchen12-Jun-03 21:01 
Generalslider scroll Pin
aguest11-Jun-03 12:44
aguest11-Jun-03 12:44 
hello i have add to my dialogBar one slider a i want to get the value of the slider when it move and i have add one variable RequiredCharacter :
void MyDialogBar::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) <br />
{<br />
	// TODO: Add your message handler code here and/or call default<br />
	if(pScrollBar)<br />
	{<br />
		CSliderCtrl * pSlider = (CSliderCtrl*)pScrollBar;<br />
		<br />
		if(pSlider->GetDlgCtrlID() == IDC_SLIDER1)<br />
		{<br />
			CString str;<br />
			str.Format("%d", pSlider->GetPos());<br />
			GetDlgItem(IDC_EDIT1)->SetWindowText(str);<br />
<br />
			<br />
		RequiredCharacter =pSlider->GetPos();<br />
<br />
<br />
		}<br />
	}<br />
	CDialogBar::OnHScroll(nSBCode, nPos, pScrollBar);	<br />
	<br />
}<br />
<br />



and in App class i want to compare this value(of the slider when it move)

like this :
<br />
if(PtrDialogBar->RequiredCharacter > ptrScene->CharacterPos.size())<br />
{<br />
int amoun = PtrDialogBar->RequiredCharacter - ptrScene->CharacterPos.size();<br />
    ptrScene->AddCharacter(amoun);<br />
}


PtrDialogBar is a pointer from the class when it was declared RequiredCharacter because it's note in the same class
CharacterPos it's a vector of structur



but it don't give any value when i scroll the slider ,can you hel me please?
Generallist of identifyers Pin
locoone11-Jun-03 12:29
locoone11-Jun-03 12:29 
GeneralRe: list of identifyers Pin
Rage11-Jun-03 23:00
professionalRage11-Jun-03 23:00 
GeneralRe: list of identifyers Pin
Anonymous12-Jun-03 1:36
Anonymous12-Jun-03 1:36 
GeneralHelp on exception handling..please.. Pin
Robert Buldoc11-Jun-03 12:19
Robert Buldoc11-Jun-03 12:19 
GeneralRe: Help on exception handling..please.. Pin
Joaquín M López Muñoz11-Jun-03 19:54
Joaquín M López Muñoz11-Jun-03 19:54 
GeneralRe: Help on exception handling..please.. Pin
Robert Buldoc11-Jun-03 20:35
Robert Buldoc11-Jun-03 20:35 
GeneralFormview + Scrollbar Pin
Atlence11-Jun-03 12:10
Atlence11-Jun-03 12:10 
GeneralRe: Formview + Scrollbar Pin
Roger Allen12-Jun-03 0:35
Roger Allen12-Jun-03 0:35 
GeneralRe: Formview + Scrollbar Pin
Atlence12-Jun-03 12:34
Atlence12-Jun-03 12:34 
GeneralTreeview Pin
Shotgun11-Jun-03 11:25
Shotgun11-Jun-03 11:25 
GeneralRe: Treeview Pin
Michael Dunn11-Jun-03 15:06
sitebuilderMichael Dunn11-Jun-03 15:06 
Generalfinding folders Pin
Steve L.11-Jun-03 10:30
Steve L.11-Jun-03 10:30 
GeneralRe: finding folders Pin
valikac11-Jun-03 10:48
valikac11-Jun-03 10:48 
GeneralRe: finding folders Pin
Steve L.11-Jun-03 11:17
Steve L.11-Jun-03 11:17 
GeneralRe: finding folders Pin
valikac11-Jun-03 11:25
valikac11-Jun-03 11:25 
GeneralRe: finding folders Pin
Anonymous11-Jun-03 21:21
Anonymous11-Jun-03 21:21 
Generalclass troubles! Pin
John Kohn11-Jun-03 10:20
sussJohn Kohn11-Jun-03 10:20 

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.