|
|
Try create brush in constructor instead of OnInitDialog.
|
|
|
|
|
I tried it.It wont paint the dialog.
Reagards
Shiva
|
|
|
|
|
Where is it crashing ??
In OnCtlColor() dont call base class version always call only in else part.
|
|
|
|
|
I traced it.Its crashing in following code.
BOOL CWnd::CreateDlgIndirect(LPCDLGTEMPLATE lpDialogTemplate,
CWnd* pParentWnd, HINSTANCE hInst)
{
ASSERT(lpDialogTemplate != NULL);
if (pParentWnd != NULL)
ASSERT_VALID(pParentWnd);
.
.
.
.
.
hWnd = ::CreateDialogIndirect(hInst, lpDialogTemplate,
(CRASH)-----> pParentWnd->GetSafeHwnd(), AfxDlgProc);
Reagards
Shiva
|
|
|
|
|
Shivarudrayya H wrote: I am creating it in OnInitDialog().
What does this method look like?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Did you write this line on the OnInitDialog?
m_DlgClr.CreateSolidBrush(RGB(97,129,175));
I am creating it in OnInitDialog().
|
|
|
|
|
|
Why you dont insert it on the constructor of your project?
|
|
|
|
|
As i said earlier it wont paint the dialog.
Reagards
Shiva
|
|
|
|
|
I guess your problem is of Onctlcolor.
|
|
|
|
|
I want some programmatic help either from MFC API or some changes in Java Script file which may help me to be assured that Windows narrator or JAWS read the content displayed on HTML pages.
|
|
|
|
|
Hi,
I have a list control and its style is report now i want to add some icons/bmps to the items in first column in list control. how can I do this....
|
|
|
|
|
|
|
See Using the List Control ^
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I am facing one problem in vc 6.0. i am unable to add files in project.When i right click to "Add files in project" an error message occur "Microsoft (R) Development Studio has encounter a problem and needs to close." I reinstall vc 6.0 but same error appear.
One solution i found is to edit in dsp file but it is not the right way.
What can i do to solve the problem ??
Thanks in advance
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
did you try adding files from menu ??
|
|
|
|
|
Yes same error occur
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Did you installed any 3ed party visual studio addons? Just try disabling or removing it.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
No i dont use any third party visual studio addons and i work simultaneously in different environment of visual studio and its an licenenced version provided by microsoft .
Is it possible that if different version of visual studio is used than this problem occur ????
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Did you get this problem with all projects ot with this project?
|
|
|
|
|
All Projects
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Hi all!
I was Trying to Open a Presentation Of PowerPoint. For That I have Used "Open" Method on a Pointer Of Presentations. But it Gives result as Exception Occured unles and untill an Instance Of PowerPoint is Not Running.
So in this case I have To manually run an instance Of PowerPoint Before Opening any Presentation.
Thank You In Advace.
|
|
|
|
|
Yes you need to create instance before you open any presentation.
|
|
|
|