Click here to Skip to main content
16,008,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to hide and/or disable PropertyPage Pin
Tom Archer10-May-02 5:45
Tom Archer10-May-02 5:45 
GeneralRe: How to hide and/or disable PropertyPage Pin
Eugene Pustovoyt10-May-02 7:02
Eugene Pustovoyt10-May-02 7:02 
GeneralRe: How to hide and/or disable PropertyPage Pin
Tom Archer10-May-02 7:08
Tom Archer10-May-02 7:08 
GeneralRe: How to hide and/or disable PropertyPage Pin
Eugene Pustovoyt10-May-02 7:58
Eugene Pustovoyt10-May-02 7:58 
GeneralRe: How to hide and/or disable PropertyPage Pin
Tom Archer10-May-02 7:59
Tom Archer10-May-02 7:59 
GeneralRe: How to hide and/or disable PropertyPage Pin
Eugene Pustovoyt10-May-02 8:45
Eugene Pustovoyt10-May-02 8:45 
GeneralRe: How to hide and/or disable PropertyPage Pin
Tom Archer10-May-02 11:20
Tom Archer10-May-02 11:20 
GeneralRe: How to hide and/or disable PropertyPage Pin
Eugene Pustovoyt15-May-02 6:51
Eugene Pustovoyt15-May-02 6:51 
Hi Tom,

Thanks for examples! I have understood how to disable tab!
I have some more questions if I yet have not bothered with the questions answer them please!

1. Whether it is possible to hide tab.
2. At me with application PSheetWithinADialog

I have a more tabs derivatives from one template, but with different labels.
Code of realization in OnInitDialog() the following.

m_sheet.AddPage(&m_pageMyPage1);
m_sheet.AddPage(&m_pageMyPage2);
m_sheet.AddPage(&m_pageMyPage3);
m_sheet.AddPage(&m_pageMyPage4);
m_sheet.AddPage(&m_pageMyPage5);
m_sheet.AddPage(&m_pageMyPage6);
m_sheet.AddPage(&m_pageMyPage7);

m_sheet.Create(this, WS_CHILD | WS_VISIBLE);
m_sheet.ModifyStyleEx (0, WS_EX_CONTROLPARENT);

TC_ITEM item;
item.mask = TCIF_TEXT;
TCHAR szText [100];
CString sTitle;
for (int i = 0; i < 7; i++)
{
    sTitle.Format(_T("Long label %d"), i);
    lstrcpy(szText, sTitle);
    item.pszText = szText;
    m_sheet.GetTabControl ()->SetItem (i, &item);
}


RECT rect;
HWND hwnd;
GetDlgItem(IDC_PROPSHEET_WINDOW, &hwnd);
ASSERT(hwnd);
if (hwnd)
{
  ::GetWindowRect(hwnd, &rect);
  ScreenToClient(&rect);

  m_sheet.SetWindowPos(NULL, rect.left, rect.top, 0, 0,
  SWP_NOZORDER | SWP_NOSIZE | SWP_NOACTIVATE);
}


Tabs begin it is deduced in two or three lines and it is wrong draw.
How of it to get rid?

Best regards,

Eugene Pustovoyt
AnswerRe: How to hide and/or disable PropertyPage Pin
Prem Kumar9-May-02 22:28
Prem Kumar9-May-02 22:28 
GeneralRe: How to hide and/or disable PropertyPage Pin
Eugene Pustovoyt10-May-02 1:39
Eugene Pustovoyt10-May-02 1:39 
Generalbreak vs continue Pin
NicholasCougar9-May-02 21:46
NicholasCougar9-May-02 21:46 
GeneralRe: break vs continue Pin
Nish Nishant9-May-02 21:48
sitebuilderNish Nishant9-May-02 21:48 
GeneralRe: break vs continue Pin
NicholasCougar9-May-02 23:00
NicholasCougar9-May-02 23:00 
GeneralRe: break vs continue Pin
Christian Graus9-May-02 23:09
protectorChristian Graus9-May-02 23:09 
QuestionFeed CEdit with multiple lines? Pin
9-May-02 21:21
suss9-May-02 21:21 
AnswerRe: Feed CEdit with multiple lines? Pin
Nish Nishant9-May-02 21:42
sitebuilderNish Nishant9-May-02 21:42 
GeneralRe: Feed CEdit with multiple lines? (pasting) Pin
9-May-02 22:49
suss9-May-02 22:49 
GeneralRe: Feed CEdit with multiple lines? (pasting) Pin
Christian Graus9-May-02 23:11
protectorChristian Graus9-May-02 23:11 
GeneralRe: Feed CEdit with multiple lines? (pasting) Pin
10-May-02 1:03
suss10-May-02 1:03 
AnswerRe: Feed CEdit with multiple lines? Pin
Tom Archer10-May-02 7:12
Tom Archer10-May-02 7:12 
GeneralToolBar problem Pin
chen9-May-02 20:51
chen9-May-02 20:51 
GeneralRe: ToolBar problem Pin
Nish Nishant9-May-02 21:46
sitebuilderNish Nishant9-May-02 21:46 
GeneralDraw in MFC Pin
HoldMe9-May-02 19:55
HoldMe9-May-02 19:55 
GeneralRe: Draw in MFC Pin
Mazdak9-May-02 20:02
Mazdak9-May-02 20:02 
GeneralRe: Draw in MFC Pin
Christian Graus9-May-02 19:58
protectorChristian Graus9-May-02 19:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.