Howto Hide the tab captions
-
Hi all, I am trying to hide the captoins of a tab control but cant seem to find any way to do this. Any kind of hints or pointers would be appreciated. Thanks. - tareq
-
Hi all, I am trying to hide the captoins of a tab control but cant seem to find any way to do this. Any kind of hints or pointers would be appreciated. Thanks. - tareq
-
Thanks for your reply... but unfortunately this is not what i was looking for. This will still show the buttons there with no text on them... I just dont want to see those buttons there. - tareq
-
Thanks for your reply... but unfortunately this is not what i was looking for. This will still show the buttons there with no text on them... I just dont want to see those buttons there. - tareq
Tareq Ahmed Siraj wrote: This will still show the buttons there with no text on them yes, that is what i understood in your "I am trying to hide the captions of a tab control...". For me, the caption is the text associated with the button... well, what about
ShowWindow(SW_HIDE);
?
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
Thanks for your reply... but unfortunately this is not what i was looking for. This will still show the buttons there with no text on them... I just dont want to see those buttons there. - tareq
if u want to hide the button use.....ShowWindow(); eg: GetDlgItem(IDC_BUTTON1)->ShowWindow(FALSE);//TO HIDE GetDlgItem(IDC_BUTTON1)->ShowWindow(TRUE);//TO SHOW OR if u have declared an object linkeded to thiz control using ddx,then just use...... object.ShowWindow(FALSE) hope that helpz..... cheerz.....:-D "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
-
Tareq Ahmed Siraj wrote: This will still show the buttons there with no text on them yes, that is what i understood in your "I am trying to hide the captions of a tab control...". For me, the caption is the text associated with the button... well, what about
ShowWindow(SW_HIDE);
?
TOXCCT >>> GEII power
[toxcct][VisualCalc]Sorry about the misunderstanding i've created. Let me be more specific. I havent done much programming with tab controls... I have a MFC tab control. I've got rid of the borders by setting the tab style to buttons. Now i have the tabs with buttons associated with them. Now i dont want even the buttons to be there. I want to control the tabs using SetCurSel()... no button clicks. Thanks in advance. - tareq
-
if u want to hide the button use.....ShowWindow(); eg: GetDlgItem(IDC_BUTTON1)->ShowWindow(FALSE);//TO HIDE GetDlgItem(IDC_BUTTON1)->ShowWindow(TRUE);//TO SHOW OR if u have declared an object linkeded to thiz control using ddx,then just use...... object.ShowWindow(FALSE) hope that helpz..... cheerz.....:-D "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
How do i get the button id for a specific tab page? Thanks. - tareq
-
How do i get the button id for a specific tab page? Thanks. - tareq
i believe teh buttonz have unique idz!you can get em from the property option of that button! "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
-
Hi all, I am trying to hide the captoins of a tab control but cant seem to find any way to do this. Any kind of hints or pointers would be appreciated. Thanks. - tareq
See if MSDN article Q151662 is of any help.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
See if MSDN article Q151662 is of any help.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Thanks for a lot for your reply... I'll go through it. - tareq