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

C / C++ / MFC

 
GeneralRe: a ftp server where download XP for free Pin
Jon Hulatt14-Dec-04 4:20
Jon Hulatt14-Dec-04 4:20 
GeneralRe: a ftp server where download XP for free Pin
toxcct14-Dec-04 4:27
toxcct14-Dec-04 4:27 
GeneralSerialization Pin
AslFunky14-Dec-04 1:17
AslFunky14-Dec-04 1:17 
GeneralRe: Serialization Pin
Ravi Bhavnani14-Dec-04 7:52
professionalRavi Bhavnani14-Dec-04 7:52 
GeneralCapturing BitMap using DirectShow Pin
tspramod14-Dec-04 1:10
tspramod14-Dec-04 1:10 
Generalrotating a bitmap Pin
Arrun13-Dec-04 23:55
Arrun13-Dec-04 23:55 
GeneralRe: rotating a bitmap Pin
namaskaaram14-Dec-04 0:39
namaskaaram14-Dec-04 0:39 
GeneralException in CPropertySheet::OnInitDialog() Pin
Avya13-Dec-04 23:52
Avya13-Dec-04 23:52 
Hi all...
plz read it completely...may be it will be helpfull for you also...

I am facing one problem, I get exception in the InitDialog of CPropertySheet()...

I have a Class named CXPropertySheet which is derived from CPropertySheet, I need this class because I want some extra effects and capabilites in property pages and propertysheet, like resizability painting background color etc...
I also have one class derived from CTabCtrl, which I use to paint tab buttons on tab control. I subclass this class to tab control of CXPropertySheet...

in the InitDialog of main dialog...
m_pPropertySheet = new CXPropertySheet("Logkey", this);
//++ Add pages to the property sheet
m_pPropertySheet->AddPage(&m_firstPage);
m_pPropertySheet->AddPage(&m_secondPage);
.
.
//++ display the property sheet...
m_pPropertySheet->Create(this, WS_CHILD | WS_VISIBLE);
//++ Modify the style,
m_pPropertySheet->ModifyStyleEx(0, WS_EX_CONTROLPARENT);
m_pPropertySheet->ModifyStyle(0, DS_CONTROL);
///////////////////////////////////////////////////////////////////////////////////////

In the InitDialog of the CXPropertySheet....to make it resizable…I wrote this code…

// I get exception here...
writeToTrace("CPropertySheet::OnInitDialog");
BOOL bResult = CPropertySheet::OnInitDialog();

writeToTrace("CXPropertySheet::OnInitDialog");
/* Subclass the tab control. */
m_myTabCtrl.SubclassWindow(GetTabControl()->m_hWnd);
writeToTrace("Subclassed the tab control");

/* Make it owner drawn. */
m_myTabCtrl.ModifyStyle(0, TCS_OWNERDRAWFIXED);

If I run it in debug it runs fine....It runs with Release build as well but in very inconsistent manner... but only on my machine...which is Win2000 professional...

I will be very grateful if anybody could give your thought for this problem, I am sorry if I have not described the problem properly...

thanx and regards...
Avya


Avya.

GeneralRe: Exception in CPropertySheet::OnInitDialog() Pin
Antony M Kancidrowski14-Dec-04 1:12
Antony M Kancidrowski14-Dec-04 1:12 
GeneralRe: Exception in CPropertySheet::OnInitDialog() Pin
Avya15-Dec-04 21:47
Avya15-Dec-04 21:47 
GeneralDelete Temporary Internet File Pin
Rajesh_K_Sharma13-Dec-04 23:06
Rajesh_K_Sharma13-Dec-04 23:06 
GeneralRe: Delete Temporary Internet File Pin
Ravi Bhavnani14-Dec-04 0:30
professionalRavi Bhavnani14-Dec-04 0:30 
GeneralSUCCES->tooltip/groupbox Pin
V.13-Dec-04 22:59
professionalV.13-Dec-04 22:59 
QuestionAny Suggestin about shrink/ stretch a BMP? Pin
ytod13-Dec-04 22:25
ytod13-Dec-04 22:25 
AnswerRe: Any Suggestin about shrink/ stretch a BMP? Pin
namaskaaram13-Dec-04 22:43
namaskaaram13-Dec-04 22:43 
GeneralRe: Any Suggestin about shrink/ stretch a BMP? Pin
ytod13-Dec-04 23:13
ytod13-Dec-04 23:13 
GeneralRe: Any Suggestin about shrink/ stretch a BMP? Pin
namaskaaram14-Dec-04 0:48
namaskaaram14-Dec-04 0:48 
GeneralWindows NT Authentication Pin
rasha200313-Dec-04 22:20
rasha200313-Dec-04 22:20 
GeneralRe: Windows NT Authentication Pin
Antony M Kancidrowski14-Dec-04 1:09
Antony M Kancidrowski14-Dec-04 1:09 
GeneralRe: Windows NT Authentication Pin
rasha200314-Dec-04 3:55
rasha200314-Dec-04 3:55 
GeneralRe: Windows NT Authentication Pin
Antony M Kancidrowski14-Dec-04 4:08
Antony M Kancidrowski14-Dec-04 4:08 
Generalweird behaviour with escape character Pin
doneirik13-Dec-04 22:18
doneirik13-Dec-04 22:18 
GeneralRe: weird behaviour with escape character Pin
AslFunky14-Dec-04 1:33
AslFunky14-Dec-04 1:33 
GeneralRe: weird behaviour with escape character Pin
doneirik14-Dec-04 1:54
doneirik14-Dec-04 1:54 
GeneralRe: weird behaviour with escape character Pin
David Crow14-Dec-04 2:13
David Crow14-Dec-04 2:13 

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.