Hi, David OK, thank you !
Hello all, I need win32 dll and exe main Window can communicated bidirection, my first idea is dll send message to main Window but dll can't get hWnd of the exe. My questions are: 1, how can I get the the exe's hWnd from dll? 2, Is there are any other better/common solution?
Hello All, I think I have not descript my idea clearly: I want the DLL can exports a FormView to exe's CTab. that means the CTab may use AddtabPage or other functions to add a FormView page inside it. Because I saw some code in CTab: inline void CTab::ShowActiveView(CWnd* pView) { if (pView != m_pActiveView) { // Hide the old view if (GetActiveView() && (GetActiveView()->IsWindow())) GetActiveView()->ShowWindow(SW_HIDE); // Assign the view window m_pActiveView = pView; if (m_pActiveView && *this)...
Hello All, I think I have not descript my idea clearly: I want the DLL can exports a FormView to exe's CTab. that means the CTab may use AddtabPage or other functions to add a FormView page inside it. Because I saw some code in CTab: inline void CTab::ShowActiveView(CWnd* pView) { if (pView != m_pActiveView) { // Hide the old view if (GetActiveView() && (GetActiveView()->IsWindow())) GetActiveView()->ShowWindow(SW_HIDE); // Assign the view window m_pActiveView = pView; if (m_pActiveView && *this)...
Hi, Nenad, Thank you very much, I have just checked the style of DLL dialog , I have only unchecked the Board. With checked the style to child, now looks fine. Thanks again. Best Regards
@nenadstefanovic Would you please help check ?
Hi, All, I have exported a CFormView from DLL(in WTL) by interface struct IDLLFormView { virtual ~IDLLFormView() { } virtual HWND Initialize(HWND hParentWnd) = 0;// call Formview's create virtual BOOL DllMessage(MSG* pMsg) = 0;//call Formview's PreTranslateMessage }; The exe has original Formview but I don't create it; exe has a member point: IDLLFormView* m_pDllFormView = 0; After click toolbar button i will create the formview : ~~~ initialize m_pDllFormView by helper function; then m_hWndClient...
Hi, All, I have exported a CFormView from DLL(in WTL) by interface struct IDLLFormView { virtual ~IDLLFormView() { } virtual HWND Initialize(HWND hParentWnd) = 0;// call Formview's create virtual BOOL DllMessage(MSG pMsg) = 0;//call Formview's PreTranslateMessage }; The exe has original Formview but I don't create it; exe has a member point: IDLLFormView m_pDllFormView = 0; After click toolbar button i will create the formview : initialize m_pDllFormView by helper function; then m_hWndClient = m_pDllFormView->Initialize(m_hWnd);...
Hi, All Based on demo: Splitter I want add a Formview into the CTab, the Formview from a DLL. From DLL sample, it has a exported function named "ShowDialog" can make dialog popup, but CTab::AddTabPage(...) will handle all creation. How can I implement my idea? Or can you share your idea?
Hi, All Based on demo: Splitter I want add a formview into the CTab. From DLL sample, it has a exported function named "ShowDialog" can make dialog popup, but CTab::AddTabPage(...) will handle all creation. How can I implement my idea? Or can you share your idea?
Hi, David, Thank you very much, I want re-size columns of listview control inside a ctab. the OnSize may have assert , than I set a member bool variable in CDockList::OnInitialUpdate(), than do resize as follow: My question is do we have other more direct method than this ? LRESULT CDockList::OnSize(UINT msg, WPARAM wparam, LPARAM lparam) { CDocker::OnSize( msg, wparam, lparam); if(m_bInitialized && m_pViewlist->IsWindow()) { CRect rect = GetWindowRect(); int width = rect.Width()/3; / int width =...
Hi, David, Hope you can check this issue, the chm for V8.8 has a function CDocker::GetDockWidth() . but I can't call it by this statement: CDockGetDockFromID(ID_DOCK_MULTI)->GetDockWidth(), the compiler has error : error: 'class Win32xx::CDocker' has no member named GetDockWidth. By searching result 0 from the include folder for Win32++, it seems V8.8 don't has this function. Would you please help check?
Thank you David, I will try to find the scenario.
This code confused me a lot. while we need a control varible why we make a control class first, and these classes change nothing. From my previous knowledge we can just use original class for control varible declarition. Or I have made mistakes in former? // nested classes for some of this dialog's child windows // that require no changes from the base class // (nesting is optional--it's done here to keep the IDE's // class view tidy) class CMyComboBox : public CComboBox {}; class CMyListBox : public...
Great,I will learn it , Thank you!
Hi. David How can we make all owner draw code in our inhired control class that we can re-use in different project?
Thank you David, Thank you for your hard working and great contribution!
Hi, David, Can we handle the WM_DRAWITEM in our customized control class, and how? Thank you!
Hi, All, Sorry, I just find Edit_SetCueBannerText works, because input focus on it , the text disappeared :) Hi David, Do you have any plan to bring us some new features like SetCueBannerText to win32++? And some new UI concept like MVVM?
Hi, Friends, I want use some new features that belong to CEdit/CCombox like SetcueBannerText, but even I have called the InitCommonControlsEx, these 2 functions do not for me, if you have such experience, please help share with me, thank you!
Thank you David, You help me again :)
Hi, David, Thank you very much, the DS_NO_FIXED_RESIZE works for my purpose. In OnSize even I checked m_pDock...->IsWindow() the app still suspended.
Hi, All, Normally the Frame window will create menu bar and tool bar by default. I want the APP doesn't have these 2 element. I have to do as following at OnInitialUpdate(seems dirty solution :( ) GetMenuBar().ShowWindow(SW_HIDE); GetToolBar().ShowWindow(SW_HIDE); GetReBar().ShowWindow(SW_HIDE); Invalidate(); UpdateWindow(); But after app starts , there is an empty bar on top of the client area, after min/max windows the bar will disappeared. How can I realize my purpose? Thank you in advance!
Hello All, I want the splitter in Demo Splitter can be reposition by size changed, than add virural function OnSize() but CFrameT and CDocker all have virtual function called (LRESULT/void)OnSize , I have to rewrite the LRESULT version. LRESULT CMainFrame::OnSize(UINT msg, WPARAM wparam, LPARAM lparam) { CRect viewRect = GetViewRect(); m_pDockTree->SetDockSize(viewRect.Height()/2); m_pDockList->SetDockSize(viewRect.Width()/2); m_pDockText->SetDockSize(viewRect.Width()/2); return CFrameT<CDocker>::OnSize(msg,...
Hi, David Thank you very much, now it works :)
Hi, all I have try to modify demo splitter to add CTab in one panel, the added code as follow. If I don't add code (1)/(2) every thing will be fine, but I need the tab button at the bottom , than code (1)/(2) added for this purpose, unfortunately none of this works for me, I aways get assertion. than have to refer to TabDemo, than code (new) part added, but same error. Have I missed any additional code to enable this purpose or something else? CDockList::CDockList() { //SetView(m_view); //m_tabView.AddTabPage(&m_view,...
Hi, I would like to see this implementation too, For my case I need use some stand telegrams and free telegram for SINAMICS devices.
Hi, All, I want the CListViewCtrl inside a page of CTabView, and the tab view inside a splitter, now the problem is after list view creation and add it to tab page, the list view is floating on the App. The creation of the list view has already specified the parent to Tab view, and the tab view addpage also specified the list view as first parameter. Can any one help share your experience for this case ? WTL version: WTL10_1077 OS: Win10 64bit
Hi, All, I want the CListViewCtrl inside a page of CTabView, and the tab view inside a splitter, now the problem is after list view creation and add it to tab page, the list view is floating on the App. The creation of the list view has already specified the parent to Tab view, and the tab view addpage also specified the list view as first parameter. Can any one help share your experience for this case ? WTL version: WTL10_1077 OS: Win10 64bit
Hello All, After check the box create as com server in wizard , than I try to add a ATL simple object into the project(I think I need add the simple object otherwise how could I implement a com class), but VS gives me and error "The project needs to include ATL support", this moment I think I need add "ATL support " first, but after that , the add ATL simple object still gives me error of need ATL support. My goal is use WTL(cause I need a UI) to build a out process com , how should i do ?
Hi Mr. Klaus Triendl, Where can I download your wininet file?