About CPropertysheet!

codes from a book like bellow:

....
void CMyDlg:OnInitDialog()
{
  ...
  m_sheet.Create(....);
  m_sheet.ModifyStyle(..);
  CRect rect;
  GetDlgItem(IDC_PROPSHEET)->GetWindowRect(&rect);
 ScreenToClient(&rect);
 m_sheet.SetWindowPos(......);
}
Where can define "IDC_PROPSHEET" ???
SonicYouthAsked:
Who is Participating?
 
jhattinghConnect With a Mentor Commented:
SonicYouth,

The book is telling you that you can use a static control in your dialog box (probably hidden) and the size and location of it can be used to position the property sheet you want in your app. I presume the supplied sample code has a dialog with a static control called IDC_PROPSHEET, but if not - go ahead and create one yourself.

Jason

0
 
MDarlingCommented:
duplicate post...

0
 
akalmaniCommented:
Hi SonicYouth !!
   This IDC_PROPSHEET will be defined in the resource when you create a Property Page.

Any more clarification feel free to ask
0
 
V_BapatCommented:
This post is duplicate. Please delete it.
0
All Courses

From novice to tech pro — start learning today.