Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Calling a VC++ 6.0 DLL from a VB program Pin
Rajesh R Subramanian14-Jan-10 5:16
professionalRajesh R Subramanian14-Jan-10 5:16 
Question3D Image Pin
ashwath197914-Jan-10 1:18
ashwath197914-Jan-10 1:18 
AnswerCross Post ! Pin
Garth J Lancaster14-Jan-10 1:33
professionalGarth J Lancaster14-Jan-10 1:33 
Questionerror: hres 0x80010106 Cannot change thread mode after it is set. Pin
Le@rner13-Jan-10 23:28
Le@rner13-Jan-10 23:28 
AnswerRe: error: hres 0x80010106 Cannot change thread mode after it is set. Pin
Richard MacCutchan14-Jan-10 0:45
mveRichard MacCutchan14-Jan-10 0:45 
GeneralRe: error: hres 0x80010106 Cannot change thread mode after it is set. Pin
CPallini14-Jan-10 1:58
mveCPallini14-Jan-10 1:58 
GeneralRe: error: hres 0x80010106 Cannot change thread mode after it is set. Pin
Richard MacCutchan14-Jan-10 4:43
mveRichard MacCutchan14-Jan-10 4:43 
QuestionCDockablePane AutHide issue Pin
Harsh Shankar13-Jan-10 22:58
Harsh Shankar13-Jan-10 22:58 
Hi guys,
Looking for some help..
In my current assignment, its needed to hide all the Dockeble panes and to get them back as they where before hiding. during hidden period, they should not be visible/available to the user. it is some how like closing the project and opening a new project in the Visual studio IDE.
However it is working fine with al the panes until they are not in the AutoHide mode. to resolve the issue, i first set Checked the Auto Hide state, if its true, then i set it to false.
Now as on getting back i want to turn the pane back in the Autohide state, i set it by calling the function:

SetAutoHideMode(TRUE, CBRS_ALIGN_ANY);

but then the application crashes Frown | :(

Here is the snap of the code to clear the problem: -

To Save the state, i did this:-
pPane is the pointer of the CDockablePane

m_nState = 0;
if(pPane->m_hWnd)
{
    if(pPane->IsDocked() && pPane->IsAutoHideMode())
    {
        pPane->ToggleAutoHide();
        m_nState = 1;
    }
    else if(pPane->IsVisible())
    {
        m_nState = 2;
    }
    pPane->ShowPane(FALSE, FALSE, FALSE);
}


To Set the previous state i did this:-
Here since i have passed the pointer with CPane

if(m_nState == 0)
{
	return;
}
pPane->ShowPane(TRUE, FALSE, TRUE);
if((m_nState == 1) && pPane->IsDocked() && !pPane->IsAutoHideMode())
{
	pPane->SetAutoHideMode(TRUE, CBRS_ALIGN_ANY);
}


And then It calles crash at BOOL CDockablePane::CheckStopSlideCondition(BOOL bDirection).

HARSH

Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.

QuestionC++ - Virtual Destructor Pin
davarun13-Jan-10 21:49
davarun13-Jan-10 21:49 
AnswerRe: C++ - Virtual Destructor Pin
CPallini13-Jan-10 22:31
mveCPallini13-Jan-10 22:31 
AnswerRe: C++ - Virtual Destructor Pin
Graham Breach13-Jan-10 22:37
Graham Breach13-Jan-10 22:37 
AnswerRe: C++ - Virtual Destructor Pin
Stuart Dootson13-Jan-10 23:27
professionalStuart Dootson13-Jan-10 23:27 
GeneralRe: C++ - Virtual Destructor Pin
davarun15-Jan-10 2:36
davarun15-Jan-10 2:36 
GeneralRe: C++ - Virtual Destructor Pin
Stuart Dootson15-Jan-10 2:58
professionalStuart Dootson15-Jan-10 2:58 
GeneralRe: C++ - Virtual Destructor Pin
davarun15-Jan-10 3:23
davarun15-Jan-10 3:23 
GeneralRe: C++ - Virtual Destructor Pin
Stuart Dootson15-Jan-10 3:38
professionalStuart Dootson15-Jan-10 3:38 
GeneralRe: C++ - Virtual Destructor Pin
davarun15-Jan-10 4:34
davarun15-Jan-10 4:34 
GeneralRe: C++ - Virtual Destructor Pin
Stuart Dootson15-Jan-10 4:44
professionalStuart Dootson15-Jan-10 4:44 
QuestionVC++ 2008 MFC Pin
2buck5613-Jan-10 14:03
2buck5613-Jan-10 14:03 
AnswerRe: VC++ 2008 MFC Pin
Chris Losinger13-Jan-10 16:25
professionalChris Losinger13-Jan-10 16:25 
GeneralRe: VC++ 2008 MFC Pin
2buck5613-Jan-10 17:51
2buck5613-Jan-10 17:51 
GeneralRe: VC++ 2008 MFC Pin
Chris Losinger13-Jan-10 18:18
professionalChris Losinger13-Jan-10 18:18 
AnswerRe: VC++ 2008 MFC Pin
Rajesh R Subramanian13-Jan-10 17:56
professionalRajesh R Subramanian13-Jan-10 17:56 
AnswerRe: VC++ 2008 MFC PinPopular
Joe Woodbury13-Jan-10 20:15
professionalJoe Woodbury13-Jan-10 20:15 
GeneralRe: VC++ 2008 MFC Pin
2buck5614-Jan-10 3:03
2buck5614-Jan-10 3:03 

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.