Click here to Skip to main content
15,908,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: can anyone suggest how to convert matlab code into c code..for resampling function Pin
enhzflep23-Aug-14 18:31
enhzflep23-Aug-14 18:31 
GeneralRe: can anyone suggest how to convert matlab code into c code..for resampling function Pin
mybm124-Aug-14 19:30
mybm124-Aug-14 19:30 
AnswerRe: can anyone suggest how to convert matlab code into c code..for resampling function Pin
jschell22-Aug-14 10:21
jschell22-Aug-14 10:21 
GeneralRe: can anyone suggest how to convert matlab code into c code..for resampling function Pin
Albert Holguin28-Aug-14 5:51
professionalAlbert Holguin28-Aug-14 5:51 
Questionhow to call a function inside another function in file like utility.c Pin
mybm120-Aug-14 0:03
mybm120-Aug-14 0:03 
AnswerRe: how to call a function inside another function in file like utility.c Pin
Richard MacCutchan20-Aug-14 1:00
mveRichard MacCutchan20-Aug-14 1:00 
GeneralRe: how to call a function inside another function in file like utility.c Pin
mybm120-Aug-14 1:22
mybm120-Aug-14 1:22 
GeneralRe: how to call a function inside another function in file like utility.c Pin
Richard MacCutchan20-Aug-14 3:06
mveRichard MacCutchan20-Aug-14 3:06 
AnswerRe: how to call a function inside another function in file like utility.c Pin
WuRunZhe21-Aug-14 2:20
WuRunZhe21-Aug-14 2:20 
AnswerRe: how to call a function inside another function in file like utility.c Pin
Richard Andrew x6422-Aug-14 8:59
professionalRichard Andrew x6422-Aug-14 8:59 
Questionerror: invalid operands to binary / (have ‘float’ and ‘int *’) Pin
mybm119-Aug-14 20:24
mybm119-Aug-14 20:24 
AnswerRe: error: invalid operands to binary / (have ‘float’ and ‘int *’) Pin
enhzflep19-Aug-14 20:51
enhzflep19-Aug-14 20:51 
GeneralRe: error: invalid operands to binary / (have ‘float’ and ‘int *’) Pin
mybm119-Aug-14 21:01
mybm119-Aug-14 21:01 
GeneralRe: error: invalid operands to binary / (have ‘float’ and ‘int *’) Pin
enhzflep19-Aug-14 21:18
enhzflep19-Aug-14 21:18 
GeneralRe: error: invalid operands to binary / (have ‘float’ and ‘int *’) Pin
mybm120-Aug-14 0:42
mybm120-Aug-14 0:42 
AnswerRe: error: invalid operands to binary / (have ‘float’ and ‘int *’) Pin
David Crow20-Aug-14 3:15
David Crow20-Aug-14 3:15 
QuestionVariable not same across process in DLL Pin
peterasloan17-Aug-14 18:49
peterasloan17-Aug-14 18:49 
AnswerRe: Variable not same across process in DLL Pin
Richard MacCutchan17-Aug-14 20:39
mveRichard MacCutchan17-Aug-14 20:39 
AnswerRe: Variable not same across process in DLL Pin
leon de boer18-Aug-14 5:18
leon de boer18-Aug-14 5:18 
QuestionCall MFC regular dll from other app Pin
john563217-Aug-14 1:56
john563217-Aug-14 1:56 
AnswerRe: Call MFC regular dll from other app Pin
«_Superman_»17-Aug-14 6:10
professional«_Superman_»17-Aug-14 6:10 
AnswerRe: Call MFC regular dll from other app Pin
leon de boer18-Aug-14 5:28
leon de boer18-Aug-14 5:28 
QuestionHow manage the lose focus from CListCtrl Control Pin
Drakesal16-Aug-14 20:45
Drakesal16-Aug-14 20:45 
Hi i am doing a program with a clistctrl with custom draw and i have custom highlight color bar.
Now my problem is when i am with mouse on CListCtrl the bar is color i wish, when i leave to go on other control
i don't know how change the color in gray of the highlight bar, i post the code for you:

void CPubFoldersView::OnNMCustomdraw(NMHDR *pNMHDR, LRESULT *pResult)
{
	NMLVCUSTOMDRAW* pCD = (NMLVCUSTOMDRAW*)pNMHDR;
	int nRow = pCD->nmcd.dwItemSpec;
	CListCtrl& m_MainTable = GetListCtrl();
	CString szInEvidence;

	//Remove standard highlighting of selected (sub)item.
	pCD->nmcd.uItemState = CDIS_DEFAULT;

	if (VirtualRowArray.GetCount())
		szInEvidence=VirtualRowArray[nRow].Field[4];

	switch(pCD->nmcd.dwDrawStage)
	{
		case CDDS_PREPAINT:
			*pResult = CDRF_NOTIFYSUBITEMDRAW;
			break;
			
		case CDDS_ITEMPREPAINT:
			*pResult = CDRF_NOTIFYSUBITEMDRAW;
			break;
			
		case CDDS_ITEMPREPAINT|CDDS_SUBITEM:
		{
			if (m_MainTable.GetItemState(nRow, LVIS_SELECTED)==LVIS_SELECTED && m_MainTable.GetItemState(nRow, LVIS_FOCUSED)==LVIS_FOCUSED)
			{
				pCD->clrTextBk	= RGB(167,205,240);    //Selected color
				*pResult = CDRF_NEWFONT;
     		}
			if (m_MainTable.GetItemState(nRow, LVIS_SELECTED)==LVIS_SELECTED && m_MainTable.GetItemState(nRow, LVIS_FOCUSED)!=LVIS_FOCUSED)
			{
				pCD->clrTextBk = RGB(197, 206, 216);    //Only focused color
				*pResult = CDRF_NEWFONT;
     		}
		}
			break;

		default:
			*pResult = CDRF_DODEFAULT;
	}
}

AnswerRe: How manage the lose focus from CListCtrl Control Pin
SoMad16-Aug-14 21:10
professionalSoMad16-Aug-14 21:10 
GeneralRe: How manage the lose focus from CListCtrl Control Pin
Drakesal16-Aug-14 21:12
Drakesal16-Aug-14 21:12 

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.