Title: Message
 
-----Original Message-----
From: Jason Teagle [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 27, 2003 1:42 AM
To: [EMAIL PROTECTED]
Subject: XP Styles Bug

Attached is TestTabBug and its manifest. It does indeed display the symptom as a stand-alone app, so it's nothing weird I've done. Run the app, and you will see that tab 1, which had the && to avoid the mnemonic, is incorrectly centred in the tab, clashing with the icon, whereas the second tab is correct.

Let me (and the list) know how it performs on your system. 

I was able to witness the same bug on my system as well (WinXP SP1).  So, you could count this as one of my other reasons to dislike the whole theming stuff.  :^)

The relevant source code is here, it's only small:

void CTestTabBugDlg::BuildTabs()
{
        m_imgTabs.Create(ID_BMP_TAB_CTRL_IMAGES, 24, 0, RGB(0, 255, 0) );
// (It's a CImageList)
        m_tabTest.SetImageList(&m_imgTabs);                                             // (It's a CTabCtrl)

        m_tabTest.InsertItem(0,_T("Bits && Bobs"), 0);
        m_tabTest.InsertItem(1,_T("Bits / Bobs"), 1);
}

void CTestTabBugDlg::DeleteTabs()
{
        m_tabTest.SetImageList(NULL);
        m_imgTabs.DeleteImageList();
}

Reply via email to