Click here to Skip to main content
15,910,210 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
Black Cat16-May-02 21:27
Black Cat16-May-02 21:27 
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
16-May-02 22:50
suss16-May-02 22:50 
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
Black Cat17-May-02 0:07
Black Cat17-May-02 0:07 
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
17-May-02 0:36
suss17-May-02 0:36 
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
Christian Graus17-May-02 1:00
protectorChristian Graus17-May-02 1:00 
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
17-May-02 4:40
suss17-May-02 4:40 
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
Christian Graus17-May-02 0:59
protectorChristian Graus17-May-02 0:59 
GeneralProblem with PropertySheet in the Dialog Pin
Eugene Pustovoyt16-May-02 19:44
Eugene Pustovoyt16-May-02 19:44 
I have CPropertySheet inside CDialog instead the control with ID - IDC_PROPSHEET_WINDOW.
I have 7 identical CPropertyPage, but with different labels.
The code of realization is given below.
But if tabs are placed more than in one line, there is the mistake of drawing connected by that the top line of tabs is visible only.

Code of realization in OnInitDialog() the following.

//add the property page to the property sheet
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);

//create the propery sheet
m_sheet.Create(this, WS_CHILD | WS_VISIBLE);
m_sheet.ModifyStyleEx (0, WS_EX_CONTROLPARENT);

//change the labels
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);
}

//move the property sheet to the dialog instead the control with ID - IDC_PROPERTYSHEET_WINDOW
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);
}


Most likely a problem that at addition CPropertyPage they have small length of labels and hold in one line.
And when I change label of the tab on the text with greater long tabs occupy more than one line.
Thus control ceases correctly them to display.

One of decisions, by default in label of the template CPropertyPage to place the text of long not less maximal length of the future label, then all is drawn normally.

Whether there are some more decisions of this problem?

Best regards,
Eugene Pustovoyt
GeneralRelease ,Debug Problem... Pin
Neha16-May-02 19:13
Neha16-May-02 19:13 
GeneralRe: Release ,Debug Problem... Pin
Prem Kumar16-May-02 19:26
Prem Kumar16-May-02 19:26 
GeneralRe: Release ,Debug Problem... Pin
Neha16-May-02 19:50
Neha16-May-02 19:50 
GeneralRe: Release ,Debug Problem... Pin
l a u r e n16-May-02 21:42
l a u r e n16-May-02 21:42 
GeneralRe: Release ,Debug Problem... Pin
Ravi Sudhakar17-May-02 1:35
Ravi Sudhakar17-May-02 1:35 
Questionhow to change asp to htm? Pin
16-May-02 17:47
suss16-May-02 17:47 
AnswerRe: how to change asp to htm? Pin
Chris Maunder16-May-02 18:14
cofounderChris Maunder16-May-02 18:14 
GeneralRe: how to change asp to htm? Pin
Carlos Antollini16-May-02 18:23
Carlos Antollini16-May-02 18:23 
GeneralRe: how to change asp to htm? Pin
16-May-02 18:25
suss16-May-02 18:25 
GeneralRe: how to change asp to htm? Pin
Carlos Antollini16-May-02 18:29
Carlos Antollini16-May-02 18:29 
GeneralRe: how to change asp to htm? Pin
16-May-02 19:02
suss16-May-02 19:02 
GeneralRe: how to change asp to htm? Pin
Nish Nishant16-May-02 19:29
sitebuilderNish Nishant16-May-02 19:29 
GeneralRe: how to change asp to htm? Pin
16-May-02 20:06
suss16-May-02 20:06 
GeneralRe: how to change asp to htm? Pin
Nish Nishant16-May-02 19:30
sitebuilderNish Nishant16-May-02 19:30 
GeneralDocument names in defualt Window menu (MDI) Pin
Eric Lee16-May-02 17:05
Eric Lee16-May-02 17:05 
GeneralImplementation of STL Sort function Pin
16-May-02 16:35
suss16-May-02 16:35 
GeneralRe: Implementation of STL Sort function Pin
Christian Graus16-May-02 17:08
protectorChristian Graus16-May-02 17:08 

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.