Tab Control
-
Hello All, I need to highlight the one of TAB of Tab Control. but TabCtrl_HighlightItem() is not working for me. Thank You in Advance.
-
Hello All, I need to highlight the one of TAB of Tab Control. but TabCtrl_HighlightItem() is not working for me. Thank You in Advance.
Sure you don't mean select it, as with TabCtrl_SetCurSel[^]
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Sure you don't mean select it, as with TabCtrl_SetCurSel[^]
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
Thank You 4 Reply my Question. Yes, i don't want to Select the Tab but only highlight the one of the TAB to indicate that some think is new in that Highlighted TAB.
-
Thank You 4 Reply my Question. Yes, i don't want to Select the Tab but only highlight the one of the TAB to indicate that some think is new in that Highlighted TAB.
zakkas2483 wrote:
...to indicate that some think is new in that Highlighted TAB.
Assuming that
TabCtrl_HighlightItem()
indeed does not work, how about changing its caption (by appending a '*' character)?"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
Thank You 4 Reply my Question. Yes, i don't want to Select the Tab but only highlight the one of the TAB to indicate that some think is new in that Highlighted TAB.
OK - I see. So...how is TabCtrl_HighlightItem not working for you? I've added a tab control to a sample project I have> It's MFC, but I've used the TabCtrl_HighlightItem macro to highlight items. Here's the method I have - it reacts to an edit control changing and cycles through the tabs of the control (the current tab index is in tabIdx_), toggling the highlight state.
void CaaaDlg::OnEnChangeEdit1()
{
tabIdx_++;
tabIdx_%=(TabCtrl_GetItemCount(tabs_.m_hWnd));
bool isHighlighted = TCIS_HIGHLIGHTED == tabs_.GetItemState(tabIdx_, TCIS_HIGHLIGHTED);
TabCtrl_HighlightItem(tabs_.m_hWnd, tabIdx_, isHighlighted?FALSE:TRUE);
}Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p