Activity for Erik Don

  • Erik Don Erik Don posted a comment on discussion Help

    Hi, David OK, thank you !

  • Erik Don Erik Don posted a comment on discussion Help

    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?

  • Erik Don Erik Don modified a comment on discussion Help

    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)...

  • Erik Don Erik Don posted a comment on discussion Help

    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)...

  • Erik Don Erik Don posted a comment on discussion Help

    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

  • Erik Don Erik Don posted a comment on discussion Help

    @nenadstefanovic Would you please help check ?

  • Erik Don Erik Don modified a comment on discussion Help

    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...

  • Erik Don Erik Don posted a comment on discussion Help

    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);...

  • Erik Don Erik Don modified a comment on discussion Help

    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?

  • Erik Don Erik Don posted a comment on discussion Help

    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?

  • Erik Don Erik Don posted a comment on discussion Help

    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 =...

  • Erik Don Erik Don posted a comment on discussion Help

    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?

  • Erik Don Erik Don posted a comment on discussion Help

    Thank you David, I will try to find the scenario.

  • Erik Don Erik Don posted a comment on discussion Help

    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...

  • Erik Don Erik Don posted a comment on discussion Help

    Great,I will learn it , Thank you!

  • Erik Don Erik Don posted a comment on discussion Help

    Hi. David How can we make all owner draw code in our inhired control class that we can re-use in different project?

  • Erik Don Erik Don posted a comment on discussion Help

    Thank you David, Thank you for your hard working and great contribution!

  • Erik Don Erik Don posted a comment on discussion Help

    Hi, David, Can we handle the WM_DRAWITEM in our customized control class, and how? Thank you!

  • Erik Don Erik Don posted a comment on discussion Help

    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?

  • Erik Don Erik Don posted a comment on discussion Help

    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!

  • Erik Don Erik Don posted a comment on discussion Help

    Thank you David, You help me again :)

  • Erik Don Erik Don posted a comment on discussion Help

    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.

  • Erik Don Erik Don posted a comment on discussion Help

    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!

  • Erik Don Erik Don posted a comment on discussion Help

    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,...

  • Erik Don Erik Don posted a comment on discussion Help

    Hi, David Thank you very much, now it works :)

  • Erik Don Erik Don posted a comment on discussion Help

    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,...

  • Erik Don Erik Don posted a comment on discussion What you would like to see in Snap7

    Hi, I would like to see this implementation too, For my case I need use some stand telegrams and free telegram for SINAMICS devices.

  • Erik Don Erik Don modified a comment on discussion Help

    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

  • Erik Don Erik Don posted a comment on discussion Help

    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

  • Erik Don Erik Don posted a comment on discussion Help

    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 ?

  • Erik Don Erik Don posted a comment on discussion Open Discussion

    Hi Mr. Klaus Triendl, Where can I download your wininet file?

1