Click here to Skip to main content
15,896,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLVN_ITEMCHANGED Pin
Yury Sulsky30-Dec-01 17:39
Yury Sulsky30-Dec-01 17:39 
GeneralRegistry problems. Pin
Jason Hooper30-Dec-01 15:17
Jason Hooper30-Dec-01 15:17 
GeneralRe: Registry problems. Pin
Michael Dunn30-Dec-01 19:16
sitebuilderMichael Dunn30-Dec-01 19:16 
GeneralRe: Registry problems. Pin
Jason Hooper31-Dec-01 14:17
Jason Hooper31-Dec-01 14:17 
GeneralRe: Registry problems. Pin
Michael Dunn31-Dec-01 14:33
sitebuilderMichael Dunn31-Dec-01 14:33 
GeneralRe: Registry problems. Pin
Jason Hooper31-Dec-01 14:39
Jason Hooper31-Dec-01 14:39 
GeneralRe: Registry problems. Pin
Roger Wright (new)31-Dec-01 14:25
Roger Wright (new)31-Dec-01 14:25 
QuestionSTL and member functions ??? Pin
Christian Graus30-Dec-01 15:17
protectorChristian Graus30-Dec-01 15:17 
I'm working on a trace utility, mainly to extend my knowledge of IOStreams and STL. I have a map to keep track of a number of edit windows, which all take the same position and are sown based on a tab control.

map<cstring, ctracewnd*=""> m_TraceMap;

Now, I hide all my windows before showing the one selected, like this:

void HideWindow(std::pair<cstring, ctracewnd="" *=""> p)
{
CTraceWnd * pWnd = p.second;
pWnd->ShowWindow(SW_HIDE);
}

void CTabView::OnSelchangeTab(NMHDR* pNMHDR, LRESULT* pResult)
{
std::for_each(m_TraceMap.begin(), m_TraceMap.end(), HideWindow);
// etc, etc.

Now I have two questions.

1. How can I make HideWindow a member function of CTabView ? I've tried mem_funxxx stuff, to no avail, and spent a good amount of time reading 'Generic Programming and the STL', also without any success.

2. Better yet, is there a way I can call ShowWindow(SW_HIDE) directly, OR add a HideWindow function that does this to CTraceWnd, and call that ?

Thanks to anyone who answers.



Christian

After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

Sonork ID 100.10002:MeanManOz
I live in Bob's HungOut now

AnswerRe: STL and member functions ??? Pin
Todd Smith30-Dec-01 20:39
Todd Smith30-Dec-01 20:39 
GeneralRe: STL and member functions ??? Pin
Christian Graus31-Dec-01 1:20
protectorChristian Graus31-Dec-01 1:20 
GeneralThis is what I'm trying to achieve... Pin
Christian Graus31-Dec-01 1:24
protectorChristian Graus31-Dec-01 1:24 
GeneralRe: This is what I'm trying to achieve... Pin
Tim Smith31-Dec-01 2:25
Tim Smith31-Dec-01 2:25 
GeneralRe: This is what I'm trying to achieve... Pin
Christian Graus31-Dec-01 10:24
protectorChristian Graus31-Dec-01 10:24 
AnswerRe: STL and member functions ??? Pin
Alexander Berthold31-Dec-01 2:01
Alexander Berthold31-Dec-01 2:01 
GeneralRe: STL and member functions ??? Pin
Christian Graus31-Dec-01 10:35
protectorChristian Graus31-Dec-01 10:35 
QuestionCListCtrl - header notification ??? Pin
Christian Graus30-Dec-01 15:13
protectorChristian Graus30-Dec-01 15:13 
AnswerRe: CListCtrl - header notification ??? Pin
Michael Dunn30-Dec-01 19:20
sitebuilderMichael Dunn30-Dec-01 19:20 
GeneralRe: CListCtrl - header notification ??? Pin
Christian Graus31-Dec-01 1:05
protectorChristian Graus31-Dec-01 1:05 
GeneralRe: CListCtrl - header notification ??? Pin
Michael Dunn31-Dec-01 7:33
sitebuilderMichael Dunn31-Dec-01 7:33 
GeneralRe: CListCtrl - header notification ??? Pin
Christian Graus1-Jan-02 0:59
protectorChristian Graus1-Jan-02 0:59 
GeneralRe: CListCtrl - header notification ??? Pin
Jonas Larsson1-Jan-02 23:20
Jonas Larsson1-Jan-02 23:20 
GeneralRe: CListCtrl - header notification ??? Pin
Christian Graus2-Jan-02 0:14
protectorChristian Graus2-Jan-02 0:14 
GeneralRe: CListCtrl - header notification ??? Pin
Jonas Larsson2-Jan-02 0:36
Jonas Larsson2-Jan-02 0:36 
GeneralRe: CListCtrl - header notification ??? Pin
Jonas Larsson4-Jan-02 4:26
Jonas Larsson4-Jan-02 4:26 
GeneralRe: CListCtrl - header notification ??? Pin
Christian Graus4-Jan-02 10:36
protectorChristian Graus4-Jan-02 10:36 

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.