color of selected focus item |
Post Reply |
Author | |
jimmy
Senior Member Joined: 11 November 2003 Location: Austria Status: Offline Points: 515 |
Post Options
Thanks(0)
Posted: 17 December 2009 at 9:10am |
Hello,
How can i change the background color of the selected focus item. if a row is selected, and item has not the focus, the background color has pPaintManager->m_clrSelectedRow; color. But there is no color for focus item. how can i change it. Thanks Jimmy |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
smth like this:
ON_NOTIFY(XTP_NM_REPORT_FOCUS_CHANGING, XTP_ID_REPORT_CONTROL, OnFocusChanged) void CReportSampleView::OnFocusChanged(NMHDR* pNotifyStruct, LRESULT* result) {if (pNotifyStruct) { XTP_NM_REPORTREQUESTEDIT* pnm = (XTP_NM_REPORTREQUESTEDIT*) pNotifyStruct; if (m_pRecItem) m_pRecItem->SetBackgroundColor(RGB(255,255,255)); if (pnm->pItem) { pnm->pItem->SetBackgroundColor(RGB(255,128,128)); m_pRecItem = pnm->pItem; } } } where CXTPReportRecordItem* m_pRecItem; set as NULL initially |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |