Forum
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.
Subject |
Author |
Date |
|
Carsten Pedersen
|
Apr 10, 2013 - 3:40 AM
|
Hi,
I have tried to add an Icon to the tab button of my CExtTabPageConatinerWnd-derived class, using the following: static int nCount=1; LPSTR strIcons[] = {IDI_APPLICATION, IDI_HAND, IDI_QUESTION, IDI_EXCLAMATION, IDI_ASTERISK}; 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: https://dl.dropbox.com/u/2254702/TabIcons.png
What can I do about that?
Best regards,
Carsten Panch
|
|