nicjedi
08-22-2008, 02:09 AM
Hi all, I found this problem in SEC3DTabWnd.
In many cases I want a tab with only an Icon, no Text.
I Add the Tab, then using the
SetTabIcon ( int nIndex, UINT nIDIcon, int cx, int cy)
function I set the right icon.
But the label result too short, and the icon is larger than the label.
I found dthat this function call the same function of SEC3DTabControl.
This function, unlike the similar
SetTabIcon ( int nIndex, LPCTSTR lpszIconName, int cx, int cy)
don't recall the base function
SetTabIcon ( int nIndex, HICON hIcon)
that contain the RecalcLayout, but execute same code of base function except the RecalcLayout function.
I don't know if this difference is a mistake or not, for now I've fixed it for me.
Bye
Nicola
In many cases I want a tab with only an Icon, no Text.
I Add the Tab, then using the
SetTabIcon ( int nIndex, UINT nIDIcon, int cx, int cy)
function I set the right icon.
But the label result too short, and the icon is larger than the label.
I found dthat this function call the same function of SEC3DTabControl.
This function, unlike the similar
SetTabIcon ( int nIndex, LPCTSTR lpszIconName, int cx, int cy)
don't recall the base function
SetTabIcon ( int nIndex, HICON hIcon)
that contain the RecalcLayout, but execute same code of base function except the RecalcLayout function.
I don't know if this difference is a mistake or not, for now I've fixed it for me.
Bye
Nicola