Click here to Skip to main content
16,006,827 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBrowse remote directory Pin
chaiyan13-May-03 17:38
chaiyan13-May-03 17:38 
Generalthread launcher Pin
aguest13-May-03 17:09
aguest13-May-03 17:09 
Generaledit control properties Pin
emrosa13-May-03 14:47
emrosa13-May-03 14:47 
GeneralRe: edit control properties Pin
valikac13-May-03 15:52
valikac13-May-03 15:52 
GeneralMDI Splitter Window crashes Pin
User 665813-May-03 12:34
User 665813-May-03 12:34 
GeneralRe: MDI Splitter Window crashes Pin
Anonymous13-May-03 15:54
Anonymous13-May-03 15:54 
GeneralRe: MDI Splitter Window crashes Pin
Anonymous13-May-03 17:46
Anonymous13-May-03 17:46 
GeneralRe: MDI Splitter Window crashes Pin
Anonymous13-May-03 17:55
Anonymous13-May-03 17:55 
and finally

/////////////////////////////////////////////////////////////////////////////
CWnd* CIndicatingSplitterWnd::GetActivePane()
{
// return active view, NULL when no active view

ASSERT_VALID(this);

// attempt to use active view of frame window
CWnd* poActivePane = NULL;
CFrameWnd* pFrameWnd = GetParentFrame();
ASSERT_VALID(pFrameWnd);
poActivePane = pFrameWnd->GetActiveView();

// failing that, use the current focus
if (poActivePane == NULL)
{
poActivePane = GetFocus();
}

// walk it up
if (poActivePane != NULL)
{
while ( (poActivePane->GetParent() != NULL) && (poActivePane->GetParent() != this) )
{
poActivePane = poActivePane->GetParent();
}
}

// make sure the pane is a child pane of the splitter
if (poActivePane != NULL )
{
if (poActivePane->GetParent() != this)
{
poActivePane = NULL;
}
}

return poActivePane;
}


GeneralRe: MDI Splitter Window crashes Pin
User 665814-May-03 0:32
User 665814-May-03 0:32 
GeneralVisual Studio Pointer Help.. Pin
keb13-May-03 11:58
keb13-May-03 11:58 
GeneralRe: Visual Studio Pointer Help.. Pin
Michael Pauli13-May-03 12:27
Michael Pauli13-May-03 12:27 
GeneralRe: Visual Studio Pointer Help.. Pin
Dean Goodman13-May-03 12:46
Dean Goodman13-May-03 12:46 
GeneralRe: Visual Studio Pointer Help.. Pin
David Crow14-May-03 3:35
David Crow14-May-03 3:35 
GeneralRe: Visual Studio Pointer Help.. Pin
keb13-May-03 13:03
keb13-May-03 13:03 
GeneralRe: Visual Studio Pointer Help.. Pin
John R. Shaw13-May-03 12:42
John R. Shaw13-May-03 12:42 
Generalmodeless Dlg Pin
MemLeak13-May-03 9:36
MemLeak13-May-03 9:36 
GeneralRe: modeless Dlg Pin
Anonymous13-May-03 10:26
Anonymous13-May-03 10:26 
GeneralRe: modeless Dlg Pin
MAAK13-May-03 21:25
MAAK13-May-03 21:25 
GeneralRe: modeless Dlg Pin
MAAK13-May-03 21:32
MAAK13-May-03 21:32 
GeneralRe: modeless Dlg Pin
Neville Franks13-May-03 23:28
Neville Franks13-May-03 23:28 
GeneralRegion Pin
MemLeak13-May-03 8:12
MemLeak13-May-03 8:12 
GeneralRe: Region Pin
rochmad13-May-03 8:31
rochmad13-May-03 8:31 
GeneralRe: Region Pin
MemLeak13-May-03 8:51
MemLeak13-May-03 8:51 
GeneralRe: Region Pin
John R. Shaw13-May-03 12:58
John R. Shaw13-May-03 12:58 
GeneralDrag & Drop Pin
Mazdak13-May-03 7:38
Mazdak13-May-03 7:38 

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.