Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Problem with icons on tabs Collapse All
Subject Author Date
Carsten Pedersen Apr 10, 2013 - 3:40 AM


I have tried to add an Icon to the tab button of my CExtTabPageConatinerWnd-derived class, using the following:
    static int nCount=1;
    HICON hIcon = AfxGetApp()->LoadStandardIcon(strIcons[nCount]);
    m_wndTab.PageIconSet(1, hIcon);

The problem is, that the tab button becomes twice the height of the other buttons, and the text next to the icon is not center-aligned vertically wrt. the icon.

You can see the result here:

What can I do about that?

Best regards,

Carsten Panch