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

C / C++ / MFC

 
QuestionFont size of menu text in MFCRibbonbar in feature pack. Pin
Anu_Bala20-Jun-13 19:16
Anu_Bala20-Jun-13 19:16 
QuestionOnLButtonDown not getting called for Slider Control in MFC.? Pin
mbatra3120-Jun-13 7:04
mbatra3120-Jun-13 7:04 
AnswerRe: OnLButtonDown not getting called for Slider Control in MFC.? Pin
thanh_bkhn20-Jun-13 18:59
professionalthanh_bkhn20-Jun-13 18:59 
GeneralRe: OnLButtonDown not getting called for Slider Control in MFC.? Pin
mbatra3120-Jun-13 19:20
mbatra3120-Jun-13 19:20 
GeneralRe: OnLButtonDown not getting called for Slider Control in MFC.? Pin
thanh_bkhn20-Jun-13 20:27
professionalthanh_bkhn20-Jun-13 20:27 
GeneralRe: OnLButtonDown not getting called for Slider Control in MFC.? Pin
mbatra3120-Jun-13 20:35
mbatra3120-Jun-13 20:35 
AnswerRe: OnLButtonDown not getting called for Slider Control in MFC.? Pin
David Crow21-Jun-13 10:12
David Crow21-Jun-13 10:12 
GeneralRe: OnLButtonDown not getting called for Slider Control in MFC.? Pin
mbatra3121-Jun-13 20:16
mbatra3121-Jun-13 20:16 
Hi David,

Thanx for the reply.

Also plz help me to solve one more issue. I want to to move the thumb where user has clicked the mouse, not in ticks.

Slider thumb should move to the position in one shot, user clicked the mouse...


I tried this code.....but it didn't work for me.

CRect rc, trc;
		m_Slider.GetChannelRect(rc);
		m_Slider.GetThumbRect(trc);
		rc.InflateRect(0, (trc.Height() - rc.Height())/2);
		if (!PtInRect(rc, point))
		return;
		LONG range = m_Slider.GetRangeMax();
		LONG pos = point.x - rc.left - trc.Width()/2;
		LONG width = rc.Width() - trc.Width();
		m_Slider.SetPos(int(DOUBLE(pos) * range / width + 0.5));


Please share any sample code if you have.


Regards,
Mbatra
AnswerRe: OnLButtonDown not getting called for Slider Control in MFC.? Pin
David Crow24-Jun-13 5:29
David Crow24-Jun-13 5:29 
GeneralRe: OnLButtonDown not getting called for Slider Control in MFC.? Pin
mbatra3124-Jun-13 22:40
mbatra3124-Jun-13 22:40 
AnswerRe: OnLButtonDown not getting called for Slider Control in MFC.? Pin
David Crow25-Jun-13 2:57
David Crow25-Jun-13 2:57 
QuestionHow to retrieve the user defined data type into main function Pin
Manoj739019-Jun-13 22:54
Manoj739019-Jun-13 22:54 
AnswerRe: How to retrieve the user defined data type into main function Pin
CPallini20-Jun-13 1:57
mveCPallini20-Jun-13 1:57 
GeneralRe: How to retrieve the user defined data type into main function Pin
Manoj739020-Jun-13 18:36
Manoj739020-Jun-13 18:36 
GeneralRe: How to retrieve the user defined data type into main function Pin
Richard MacCutchan20-Jun-13 20:53
mveRichard MacCutchan20-Jun-13 20:53 
AnswerRe: How to retrieve the user defined data type into main function Pin
Richard MacCutchan20-Jun-13 2:09
mveRichard MacCutchan20-Jun-13 2:09 
GeneralRe: How to retrieve the user defined data type into main function Pin
Manoj739020-Jun-13 18:13
Manoj739020-Jun-13 18:13 
GeneralRe: How to retrieve the user defined data type into main function Pin
Richard MacCutchan20-Jun-13 20:38
mveRichard MacCutchan20-Jun-13 20:38 
AnswerRe: How to retrieve the user defined data type into main function Pin
Stefan_Lang24-Jun-13 0:41
Stefan_Lang24-Jun-13 0:41 
GeneralRe: How to retrieve the user defined data type into main function Pin
Manoj73901-Jul-13 18:42
Manoj73901-Jul-13 18:42 
GeneralRe: How to retrieve the user defined data type into main function Pin
Stefan_Lang2-Jul-13 0:22
Stefan_Lang2-Jul-13 0:22 
GeneralRe: How to retrieve the user defined data type into main function Pin
Manoj73902-Jul-13 23:47
Manoj73902-Jul-13 23:47 
GeneralRe: How to retrieve the user defined data type into main function Pin
Stefan_Lang3-Jul-13 0:28
Stefan_Lang3-Jul-13 0:28 
GeneralRe: How to retrieve the user defined data type into main function Pin
Stefan_Lang3-Jul-13 0:36
Stefan_Lang3-Jul-13 0:36 
GeneralRe: How to retrieve the user defined data type into main function Pin
Manoj73903-Jul-13 20:53
Manoj73903-Jul-13 20:53 

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.