Click here to Skip to main content
15,902,832 members
Home / Discussions / Mobile
   

Mobile

 
Questionproblem with add member variable using popup menu [modified](POCKET PC 2005) Pin
phijophlip27-Jul-06 18:17
phijophlip27-Jul-06 18:17 
QuestionLocal Ip Endpoint, VS 2005 Windows Mobile Pin
aruna_koride26-Jul-06 23:40
aruna_koride26-Jul-06 23:40 
QuestionCopy SQL Server 2005 DB to PDA - is it possible? Pin
nzmike26-Jul-06 16:17
nzmike26-Jul-06 16:17 
AnswerRe: Copy SQL Server 2005 DB to PDA - is it possible? Pin
Mike Dimmick27-Jul-06 1:43
Mike Dimmick27-Jul-06 1:43 
GeneralRe: Copy SQL Server 2005 DB to PDA - is it possible? Pin
nzmike27-Jul-06 14:38
nzmike27-Jul-06 14:38 
GeneralRe: Copy SQL Server 2005 DB to PDA - is it possible? Pin
Mike Dimmick28-Jul-06 0:47
Mike Dimmick28-Jul-06 0:47 
QuestionHow do I put a simple dividing line on a dialog? Pin
Oh Confused One26-Jul-06 4:35
Oh Confused One26-Jul-06 4:35 
QuestionCListCtrl highlight color Pin
Fernando A. Gomez F.24-Jul-06 11:06
Fernando A. Gomez F.24-Jul-06 11:06 
Hi fellows,

given a CListCtrl in a dialog with a report style, how can I change the color of the selected row? I'm doing the following on my handler of the ON_NOTIFY_REFLECT:

<br />
void CCvList::OnDrawList(NMHDR* pNMHDR, LRESULT* pResult)<br />
{<br />
  int iRow;<br />
	static bool bHighlighted;<br />
	NMLVCUSTOMDRAW* pLVCD = reinterpret_cast<NMLVCUSTOMDRAW*>( pNMHDR );<br />
<br />
    *pResult = CDRF_DODEFAULT;<br />
<br />
    if (CDDS_PREPAINT == pLVCD->nmcd.dwDrawStage)<br />
	{<br />
        *pResult = CDRF_NOTIFYITEMDRAW;<br />
    }<br />
    else if (CDDS_ITEMPREPAINT == pLVCD->nmcd.dwDrawStage)<br />
	{<br />
        COLORREF crText;<br />
<br />
		iRow = (int)pLVCD->nmcd.dwItemSpec;<br />
		bHighlighted = ListView_GetItemState(m_hWnd, iRow, LVIS_SELECTED) != 0;<br />
<br />
		if (bHighlighted) <br />
		{<br />
			crText = RGB(255, 127, 0);<br />
		}<br />
		else<br />
		{<br />
            crText = RGB(255, 255, 255);<br />
		}<br />
<br />
        pLVCD->clrTextBk= crText;<br />
<br />
		ListView_SetItemState(m_hWnd, iRow, bHighlighted? 0xFF : 0, LVIS_SELECTED);<br />
<br />
        *pResult = CDRF_DODEFAULT | CDRF_NOTIFYPOSTPAINT;<br />
	}<br />
	else if (CDDS_ITEMPOSTPAINT == pLVCD->nmcd.dwDrawStage)<br />
	{<br />
		if (bHighlighted)<br />
		{<br />
			iRow = (int)pLVCD->nmcd.dwItemSpec;<br />
			pLVCD->clrTextBk = RGB(255, 127, 0);<br />
<br />
			ListView_SetItemState(m_hWnd, iRow, bHighlighted? 0xFF : 0, LVIS_SELECTED);<br />
		}<br />
	}<br />
}<br />


following this article, but it is not working. Any clue will be really appreciated.

Regards,
FG.

A polar bear is a bear whose coordinates has been changed in terms of sine and cosine.

QuestionGetting number of voice mails- WM 5.0, eVC Pin
rstrokur24-Jul-06 9:04
rstrokur24-Jul-06 9:04 
QuestionAbout DMO development Pin
Roy Wong23-Jul-06 22:53
Roy Wong23-Jul-06 22:53 
QuestionAbout DMO development Pin
Roy Wong23-Jul-06 22:52
Roy Wong23-Jul-06 22:52 
AnswerRe: About DMO development Pin
Chris S Kaiser24-Jul-06 6:51
Chris S Kaiser24-Jul-06 6:51 
QuestionJammers Pin
Vasudevan Deepak Kumar21-Jul-06 2:43
Vasudevan Deepak Kumar21-Jul-06 2:43 
QuestionDatagrid Cell Color Pin
BlueKooZZZZZZZZ21-Jul-06 1:03
BlueKooZZZZZZZZ21-Jul-06 1:03 
GeneralRe: Datagrid Cell Color Pin
BlueKooZZZZZZZZ21-Jul-06 5:27
BlueKooZZZZZZZZ21-Jul-06 5:27 
GeneralRe: Datagrid Cell Color Pin
nzmike27-Jul-06 18:01
nzmike27-Jul-06 18:01 
GeneralRe: Datagrid Cell Color Pin
Chris S Kaiser8-Aug-06 8:28
Chris S Kaiser8-Aug-06 8:28 
QuestionMobile Connectiivity or Name Space For Mobile Class in VB.NET Pin
Viral Upadhyay20-Jul-06 19:50
Viral Upadhyay20-Jul-06 19:50 
AnswerRe: Mobile Connectiivity or Name Space For Mobile Class in VB.NET Pin
akang_cupez12-Aug-06 9:04
akang_cupez12-Aug-06 9:04 
GeneralRe: Mobile Connectiivity or Name Space For Mobile Class in VB.NET Pin
Viral Upadhyay14-Aug-06 6:30
Viral Upadhyay14-Aug-06 6:30 
GeneralRe: Mobile Connectiivity or Name Space For Mobile Class in VB.NET Pin
akang_cupez14-Aug-06 7:34
akang_cupez14-Aug-06 7:34 
QuestionHOW OPEN HTML FILES PROGRAMATICALY Pin
Israel Lins19-Jul-06 4:07
Israel Lins19-Jul-06 4:07 
QuestionHow to create the cab file in Visual Studio.Net 2003? Pin
tillandran18-Jul-06 22:41
tillandran18-Jul-06 22:41 
AnswerRe: How to create the cab file in Visual Studio.Net 2003? Pin
Chris S Kaiser19-Jul-06 7:47
Chris S Kaiser19-Jul-06 7:47 
QuestionE-books on pocketPC programming Pin
alexey N18-Jul-06 22:26
alexey N18-Jul-06 22:26 

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.