Send message to child
-
Hello I want to send messages from MainFrame to its child views (for example CView and CListView). In MainFrame there are tree views created from splitterwnd like this; m_wndSplitter2.CreateView(0,0, RUNTIME_CLASS(CUserListView), CSize (0, 0), NULL); Those are the ones I would like to send messages to. How do I do that? How do I get all neccesary handles/pointers to that view. /Yours truly ;)
-
Hello I want to send messages from MainFrame to its child views (for example CView and CListView). In MainFrame there are tree views created from splitterwnd like this; m_wndSplitter2.CreateView(0,0, RUNTIME_CLASS(CUserListView), CSize (0, 0), NULL); Those are the ones I would like to send messages to. How do I do that? How do I get all neccesary handles/pointers to that view. /Yours truly ;)
-
I really need to know how to get a handle or a pointer to a child view? I'm trying to do thar with GetWindow(), but how do I know which window the result is? Thanks for all your help /DrZOO
I think you can get the caption of all windows like this. I'm sure there is an easier way. HWND curHWnd = GetWindow(HWND, GW_HWNDFIRST) while (curHWnd) { int iLen = GetWindowTextLength(curHWnd) GetWindowText(curHWnd , szWindowText, lngLen + 1) // check if szWindowText is the Caption you want curHWnd = GetWindow(curHWnd, GW_HWNDNEXT) } QMuffs
-
Hello I want to send messages from MainFrame to its child views (for example CView and CListView). In MainFrame there are tree views created from splitterwnd like this; m_wndSplitter2.CreateView(0,0, RUNTIME_CLASS(CUserListView), CSize (0, 0), NULL); Those are the ones I would like to send messages to. How do I do that? How do I get all neccesary handles/pointers to that view. /Yours truly ;)
if you have the splitter wnd, you can do : splitter.GetPane(...) for each of the panes. this gievs you the CWnd for each sub-view. -c
ABSURDITY: A statement or belief manifestly inconsistent with one's own opinion.
-
if you have the splitter wnd, you can do : splitter.GetPane(...) for each of the panes. this gievs you the CWnd for each sub-view. -c
ABSURDITY: A statement or belief manifestly inconsistent with one's own opinion.