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

C / C++ / MFC

 
Questionlife-cycle of a typical MFC program Pin
Scorpio24-May-06 20:40
Scorpio24-May-06 20:40 
AnswerRe: life-cycle of a typical MFC program Pin
Nibu babu thomas24-May-06 21:00
Nibu babu thomas24-May-06 21:00 
AnswerRe: life-cycle of a typical MFC program Pin
NiceNaidu24-May-06 21:09
NiceNaidu24-May-06 21:09 
QuestionMFC Slider Direction Pin
ttthearty24-May-06 20:37
ttthearty24-May-06 20:37 
AnswerRe: MFC Slider Direction Pin
_AnsHUMAN_ 24-May-06 20:59
_AnsHUMAN_ 24-May-06 20:59 
GeneralRe: MFC Slider Direction Pin
ttthearty24-May-06 21:10
ttthearty24-May-06 21:10 
GeneralRe: MFC Slider Direction Pin
_AnsHUMAN_ 24-May-06 21:53
_AnsHUMAN_ 24-May-06 21:53 
GeneralRe: MFC Slider Direction [modified] Pin
_AnsHUMAN_ 24-May-06 21:58
_AnsHUMAN_ 24-May-06 21:58 
	<br />
void MySliderTest::OnCustomDrawMySlider(NMHDR* pNMHDR, LRESULT* pResult)<br />
{<br />
if(i<br />
{<br />
i=m_sliding.GetPos();<br />
CString str;<br />
str.Format("%d",i);<br />
m_str.SetWindowText (str);<br />
}<br />
else<br />
{<br />
<br />
i=m_sliding.GetPos();<br />
CString str;<br />
str.Format("%d",i);<br />
m_str.SetWindowText (str);<br />
}<br />
*pResult = 0;<br />
}<br />
<br />
void MySliderTest::OnReleasedcaptureMySlider(NMHDR* pNMHDR, LRESULT* pResult) <br />
{<br />
	// TODO: Add your control notification handler code here<br />
	if(i<m_sliding.GetPos())<br />
	{<br />
		AfxMessageBox ("Down");<br />
		i=m_sliding.GetPos();<br />
	}<br />
	else<br />
	{<br />
		AfxMessageBox ("Up");<br />
		i=m_sliding.GetPos();<br />
	}<br />
	*pResult = 0;<br />
}<br />

<try removing="" the="" lines="" that="" i="" just="" striked="">
and add the slider release function>

Somethings seem HARD to do, until we know how to do them.
Wink | ;-)
_AnShUmAn_


-- modified at 3:58 Thursday 25th May, 2006
GeneralRe: MFC Slider Direction [modified] Pin
ttthearty24-May-06 22:03
ttthearty24-May-06 22:03 
GeneralRe: MFC Slider Direction [modified] Pin
_AnsHUMAN_ 24-May-06 22:08
_AnsHUMAN_ 24-May-06 22:08 
AnswerRe: MFC Slider Direction Pin
Hamid_RT24-May-06 21:45
Hamid_RT24-May-06 21:45 
Questiontemplates Pin
vivek.s.vivek24-May-06 20:23
vivek.s.vivek24-May-06 20:23 
AnswerRe: templates [modified] Pin
Nibu babu thomas24-May-06 20:36
Nibu babu thomas24-May-06 20:36 
GeneralRe: templates [modified] Pin
Eytukan24-May-06 22:24
Eytukan24-May-06 22:24 
GeneralRe: templates [modified] Pin
Nibu babu thomas24-May-06 22:26
Nibu babu thomas24-May-06 22:26 
Questionwparm,lparm Pin
Scorpio24-May-06 20:22
Scorpio24-May-06 20:22 
AnswerRe: wparm,lparm Pin
Nibu babu thomas24-May-06 20:30
Nibu babu thomas24-May-06 20:30 
AnswerRe: wparm,lparm Pin
Sarath C24-May-06 20:31
Sarath C24-May-06 20:31 
GeneralRe: wparm,lparm Pin
Scorpio24-May-06 20:44
Scorpio24-May-06 20:44 
GeneralRe: wparm,lparm Pin
Sarath C24-May-06 21:19
Sarath C24-May-06 21:19 
Questionnew com port driver Pin
MyOwnShadow24-May-06 20:06
MyOwnShadow24-May-06 20:06 
AnswerRe: new com port driver Pin
NiceNaidu24-May-06 20:49
NiceNaidu24-May-06 20:49 
Questionsingleton inheritance Pin
Krishnatv24-May-06 19:55
Krishnatv24-May-06 19:55 
AnswerRe: singleton inheritance Pin
Nibu babu thomas24-May-06 20:16
Nibu babu thomas24-May-06 20:16 
QuestionCRichEditCtrl Pin
VinayCool24-May-06 19:47
VinayCool24-May-06 19:47 

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.