Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHide App From Task List Pin
Lau26-Jun-00 23:13
Lau26-Jun-00 23:13 
GeneralRe: Hide App From Task List Pin
heejun27-Jun-00 1:41
heejun27-Jun-00 1:41 
GeneralCListCtrl using OnCustomDraw() Pin
Chris Vischer26-Jun-00 21:35
Chris Vischer26-Jun-00 21:35 
QuestionWhat's Component Manager? Pin
Member 327926-Jun-00 20:47
Member 327926-Jun-00 20:47 
QuestionCan I call a CDialog's DoModal() from HTML contained in CHTMLView? Pin
panoramix26-Jun-00 15:04
panoramix26-Jun-00 15:04 
AnswerRe: Can I call a CDialog's DoModal() from HTML contained in CHTMLView? Pin
pba_27-Jun-00 2:41
pba_27-Jun-00 2:41 
GeneralAdd / Remove Splitter Panes Pin
Bert Tuyt26-Jun-00 9:25
Bert Tuyt26-Jun-00 9:25 
GeneralRe: Add / Remove Splitter Panes Pin
pba_27-Jun-00 2:52
pba_27-Jun-00 2:52 
Here is the code who hide / show a row . This code is written especially to hide / show only a row at a time . You can use it also to hide / show more then one row, but be aware to the sequence of hide / show operations.
Derive a class from CSplitterWnd, and add this code :
void CMySplitterWnd::HideRow(int rowHide)
{
ASSERT(m_nRows > 1);
ASSERT(rowHide < m_nRows);

SetActivePane( 0, 0 );
CWnd* pPaneHide = GetPane(rowHide, 0);
ASSERT(pPaneHide != NULL);
pPaneHide->ShowWindow(SW_HIDE);
pPaneHide->SetDlgCtrlID(AFX_IDW_PANE_FIRST + m_nRows);

for( int row = rowHide + 1; row < m_nRows; row++ )
{
CWnd* pPane = GetPane( row, 0 );
ASSERT( pPane != NULL );
pPane->SetDlgCtrlID( IdFromRowCol(row - 1, 0) );
m_pRowInfo[row-1] = m_pRowInfo[row];
}

m_nRows--;
m_pRowInfo[m_nRows] = m_pRowInfo[rowHide];
RecalcLayout();
}

void CTSplitterWnd::ShowRow(int rowShow)
{
ASSERT(m_nRows < m_nMaxRows);

int rowNew = rowShow;
CRowColInfo rowNewInfo = m_pRowInfo[m_nRows];
m_nRows++;
int row;
CWnd* pPaneShow = GetDlgItem( AFX_IDW_PANE_FIRST +
m_nRows);
ASSERT(pPaneShow != NULL);

pPaneShow->ShowWindow(SW_SHOWNA);
for(row = m_nRows - 2; row >= rowNew; row--)
{
CWnd* pPane = GetPane(row, 0);
ASSERT(pPane != NULL);
pPane->SetDlgCtrlID(IdFromRowCol(row + 1, 0));
m_pRowInfo[row + 1] = m_pRowInfo[row];
}
pPaneShow->SetDlgCtrlID(IdFromRowCol(rowNew, 0));
m_pRowInfo[rowNew] = rowNewInfo;
RecalcLayout();
}
On this base you can write the functions for hide / show a colon
GeneralProblems with conjg in complex class ! Pin
Sascha26-Jun-00 9:13
Sascha26-Jun-00 9:13 
GeneralRe: Problems with conjg in complex class ! Pin
Mike Dunn26-Jun-00 20:29
Mike Dunn26-Jun-00 20:29 
GeneralModify CScrollView background color Pin
Amir Wassermann26-Jun-00 4:36
sussAmir Wassermann26-Jun-00 4:36 
QuestionHow to create SQL queryes in project Pin
David M.Hakobyan26-Jun-00 3:38
David M.Hakobyan26-Jun-00 3:38 
AnswerRe: How to create SQL queryes in project Pin
Pere Mitjavila15-Jul-00 1:38
Pere Mitjavila15-Jul-00 1:38 
QuestionHow to share memory betwenne two process Pin
pepeR26-Jun-00 0:26
pepeR26-Jun-00 0:26 
AnswerRe: How to share memory betwenne two process Pin
Alex Gorev26-Jun-00 3:34
Alex Gorev26-Jun-00 3:34 
Generalado exception occured where recordset opened too big. Pin
tica25-Jun-00 22:48
tica25-Jun-00 22:48 
QuestionHow to display data on the thread? Pin
Edel Alva25-Jun-00 22:45
sussEdel Alva25-Jun-00 22:45 
AnswerRe: How to display data on the thread? Pin
Alex Gorev26-Jun-00 3:39
Alex Gorev26-Jun-00 3:39 
GeneralRe: How to display data on the thread? Pin
Edel Alva26-Jun-00 16:58
sussEdel Alva26-Jun-00 16:58 
GeneralFile Copying Question Pin
woltman25-Jun-00 18:11
woltman25-Jun-00 18:11 
GeneralSwitching MFC Views in Win2000 Pin
Jeff Ellis25-Jun-00 16:14
sussJeff Ellis25-Jun-00 16:14 
GeneralProblems changing the background color of a CEdit Pin
Joan Murt25-Jun-00 8:38
sussJoan Murt25-Jun-00 8:38 
GeneralMemory leak Pin
Member 403225-Jun-00 2:54
Member 403225-Jun-00 2:54 
GeneralRe: Memory leak Pin
Tim Deveaux25-Jun-00 13:09
Tim Deveaux25-Jun-00 13:09 
Questionhow to get icon out of file extension ? Pin
Yariv25-Jun-00 1:51
Yariv25-Jun-00 1:51 

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.