Click here to Skip to main content
15,916,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaloverloaded operator + Pin
23-Oct-01 15:30
suss23-Oct-01 15:30 
GeneralRe: overloaded operator + Pin
Michael Martin23-Oct-01 17:49
professionalMichael Martin23-Oct-01 17:49 
GeneralRe: overloaded operator + Pin
Todd Smith23-Oct-01 18:36
Todd Smith23-Oct-01 18:36 
GeneralRe: overloaded operator + Pin
Christian Graus23-Oct-01 18:57
protectorChristian Graus23-Oct-01 18:57 
GeneralRe: overloaded operator + Pin
#realJSOP24-Oct-01 2:44
professional#realJSOP24-Oct-01 2:44 
GeneralRe: overloaded operator + Pin
Todd Smith24-Oct-01 14:08
Todd Smith24-Oct-01 14:08 
GeneralCCustomDraw for Trackbar Pin
clintsinger23-Oct-01 14:17
clintsinger23-Oct-01 14:17 
GeneralRe: CCustomDraw for Trackbar Pin
Tomasz Sowinski24-Oct-01 0:16
Tomasz Sowinski24-Oct-01 0:16 
Here's the example - it draws the 'channel rectangle' in green:

void CMySlider::OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult) 
{
	LPNMCUSTOMDRAW pcd  = (LPNMCUSTOMDRAW)pNMHDR;
	
	if (CDDS_PREPAINT == pcd->dwDrawStage)
	{
		*pResult = CDRF_NOTIFYITEMDRAW;
		return;
	}
	
	*pResult = 0;


	if (TBCD_CHANNEL == pcd->dwItemSpec && 
		CDDS_ITEMPREPAINT == pcd->dwDrawStage)
	{
		CDC dc;
		dc.Attach(pcd->hdc);
		CRect rc;
		GetChannelRect(rc);
		dc.DrawEdge(&rc, BDR_SUNKENOUTER, BF_RECT);
		rc.DeflateRect(2, 2);
		dc.FillSolidRect(&rc, RGB(0, 255, 0));
		dc.Detach();
		
		*pResult = CDRF_SKIPDEFAULT;
	}
}


Tomasz Sowinski -- http://www.shooltz.com
GeneralHELP -- Re: CCustomDraw for Trackbar Pin
clintsinger24-Oct-01 7:29
clintsinger24-Oct-01 7:29 
GeneralFile Save As... and UNC File specifications Pin
23-Oct-01 12:44
suss23-Oct-01 12:44 
GeneralRe: File Save As... and UNC File specifications Pin
Tomasz Sowinski23-Oct-01 23:50
Tomasz Sowinski23-Oct-01 23:50 
QuestionHow can I make the computer beep w/ a few lines of code? Pin
John Ashcroft23-Oct-01 11:12
John Ashcroft23-Oct-01 11:12 
AnswerRe: How can I make the computer beep w/ a few lines of code? Pin
Chris Losinger23-Oct-01 11:18
professionalChris Losinger23-Oct-01 11:18 
GeneralRe: How can I make the computer beep w/ a few lines of code? Pin
#realJSOP24-Oct-01 2:45
professional#realJSOP24-Oct-01 2:45 
AnswerRe: How can I make the computer beep w/ a few lines of code? Pin
Carlos Antollini23-Oct-01 11:20
Carlos Antollini23-Oct-01 11:20 
AnswerRe: How can I make the computer beep w/ a few lines of code? Pin
Christian Graus23-Oct-01 11:20
protectorChristian Graus23-Oct-01 11:20 
AnswerRe: THANKS How can I make the computer beep w/ a few lines of code? Pin
John Ashcroft23-Oct-01 11:40
John Ashcroft23-Oct-01 11:40 
GeneralRe: How can I make the computer beep w/ a few lines of code? Pin
Ravi Bhavnani23-Oct-01 11:27
professionalRavi Bhavnani23-Oct-01 11:27 
GeneralRe: How can I make the computer beep w/ a few lines of code? Pin
Christian Graus23-Oct-01 11:37
protectorChristian Graus23-Oct-01 11:37 
GeneralRe: How can I make the computer beep w/ a few lines of code? Pin
Carlos Antollini23-Oct-01 12:12
Carlos Antollini23-Oct-01 12:12 
AnswerRe: How can I make the computer beep w/ a few lines of code? Pin
Steve L.23-Oct-01 12:46
Steve L.23-Oct-01 12:46 
AnswerRe: How can I make the computer beep w/ a few lines of code? Pin
Todd Smith24-Oct-01 14:09
Todd Smith24-Oct-01 14:09 
GeneralC++ Newbie to Write DLL wrapper Pin
Biggy23-Oct-01 8:51
Biggy23-Oct-01 8:51 
GeneralActiveX Control Design Time Pin
23-Oct-01 7:12
suss23-Oct-01 7:12 
QuestionHow to use same handle in seperate thread Pin
Mark Lenz23-Oct-01 5:57
Mark Lenz23-Oct-01 5:57 

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.