Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
F

Franken

@Franken
About
Posts
31
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • setup project
    F Franken

    I don't know wether the problem is due to the manifest file. I have know experience with mixed-mode setup projects. I just added the exe file to the setup wizard and when I compile the setup project it recognizes the dependency to the dundaswingauge.dll which is then added to the setup project. When I exclude the dundas gauge control from the project. The application runs fine also on the target machine. The dundaswingauge.dll doesn't show up in the manifest file. Might this be the problem? Best regards, Frank.

    C / C++ / MFC csharp c++ winforms debugging question

  • setup project
    F Franken

    I use TeeChart as ActiveX Control but this doesn't seem to make problems. It is the only ActiveX control which I use. When I build the setup project with the ActiveX control and without the gauge control (dll) everything works fine. The gauge control don't have any ActiveX component.

    C / C++ / MFC csharp c++ winforms debugging question

  • setup project
    F Franken

    hm, this unfortunatly doesn't solve the problem:(. I've installed vcredist_x86.exe on the target machine but the error still occurs.

    C / C++ / MFC csharp c++ winforms debugging question

  • setup project
    F Franken

    I don't know. What is vcredist_x86.exe? It's my first mixed-mode setup project. Actually it's my first setup project at all.

    C / C++ / MFC csharp c++ winforms debugging question

  • setup project
    F Franken

    Hi everybody, I've written a mfc application which uses dundas gauge controls (together with windows forms). Everything works fine in debug or release mode but when I try to install the software on a different machine (windows XP, freshly installed) the application don't even start. Actually the installation works fine but the software don't run. I've checked all dependencies with dependency walker and also included "DundasWinGauge.dll" in the setup project (VS2005 setup wizard). DotNet is installed on the target machine. If I exclude the dundas gauge control then the application also runs on the target machine. Does anybody have an idea? Best regards, Frank.

    C / C++ / MFC csharp c++ winforms debugging question

  • setup project
    F Franken

    Hi everybody, I've written a mfc application which uses dundas gauge controls (together with windows forms). Everything works fine in debug or release mode but when I try to install the software on a different machine (windows XP, freshly installed) the application don't even start. Actually the installation works fine but the software don't run. I've checked all dependencies with dependency walker and also included "DundasWinGauge.dll" in the setup project (VS2005 setup wizard). DotNet is installed on the target machine. If I exclude the dundas gauge control then the application also runs on the target machine. Does anybody have an idea? Best regards, Frank.

    Managed C++/CLI csharp c++ winforms debugging question

  • modeless dialog in the client area of MDI-application
    F Franken

    I set the style to child in the dialog editor properties and did the following during the creation of the dialog:

    CMainFrame* pFrame = (CMainFrame*)GetMainWnd();
    CChildFrame* pChild = (CChildFrame*)pFrame->GetActiveFrame();

    CmyDlg* pDlg = new CmyDlg;
    pDlg->Create(IDD_DIALOG_myDlg, pChild->GetParent());
    pDlg->ShowWindow(SW_SHOW);

    This is almost what I wanted but it shows some weird behaviour. When a region of the dialog is covered by another child window this region shows still the part of the child window even if I drag the dialog to another place. It only restores the correct dialog, when I resize the dialog. Is there somewhere a flag like redraw or something? Many thanks :), Frank.

    C / C++ / MFC question

  • modeless dialog in the client area of MDI-application
    F Franken

    I also thought that it should be possible to set WS_CHILD style but haven't found a way to do this.

    C / C++ / MFC question

  • modeless dialog in the client area of MDI-application
    F Franken

    yes, but it doesn't help me because Nishant Sivakumar suggest to use the desktop window as a parent for the modeless dialog. When I do this, the modeless dialog is even more independent of my application. What I want is a modeless dialog, which behaves like a MDIView but without the overhead of the document. It should be moveable only inside the client area of the application and not on the whole desktop.

    C / C++ / MFC question

  • modeless dialog in the client area of MDI-application
    F Franken

    Hi everybody, I try to create a modeless dialog in the client area of a MDI application. It should display some data form the app class (not the document). When I create the dialog:

    pmyDlg = new CmyDialog;
    pmyDlg->Create(IDD_DIALOG_mydlg)
    pmyDlg->ShowWindow(SW_SHOW)

    it always appear on top of the application, not in the client area of the child frame. I tried things like pmyDlg->Create(IDD_DIALOG_mydlg, theApp.m_pMainWnd) to set a parent for this dialog but it was alway dragable over the whole desktop and was not restricted to the client area. Can someone send me a hint? Many thanks. Cheers, Frank.

    C / C++ / MFC question

  • How to add a Bitmap to a Button?
    F Franken

    Hi, I want to use a MFC checkbox (button style) with Bitmap displayed on it (or even better with a Bitmap and Text at the same time). In the Resource Editor I've set Bitmap to true for my button (.NET 2005). In OnInitDialog I've then tried m_myCeckBox.SetBitmap(::LoadBitmap(NULL, MAKEINTRESOURCE(IDB_BITMAP_Play)));. When I run my application only an empty button is shown. Can anybody give me a hint? Thanks, Frank.

    C / C++ / MFC csharp c++ graphics tutorial question

  • resizing problem in a selfmade MDIChildFrame
    F Franken

    I used the dialog editor to create the controls. The chart control is an ActiveX control and the button is actually a checkbox control, which behaves like a button. In this editor I also assigned the member variables by a right click on the control and let the framework do the job. So the framework also created the DataExchange

    void CmyFormView::DoDataExchange(CDataExchange* pDX)
    {
    CFormView::DoDataExchange(pDX);
    DDX_Control(pDX, IDC_TCHART_Chart, m_Chart);
    DDX_Control(pDX, IDC_CHECK_Button, m_Button);
    }

    I created also another child frame in the same way but assigned it to a DocTemplate so that it starts when the programm start. Here I don't have resizing problems. So maybe I did something wrong in my OnAnsichtnewView part when the user creates the child frame. Maybe I have to pass a handle? Thanks, Frank. -- modified at 7:32 Saturday 25th November, 2006

    C / C++ / MFC c++ help question

  • resizing problem in a selfmade MDIChildFrame
    F Franken

    Hi all, I've written an MFC MDI application where I need an additional child frame to show other aspects of my data. So I derived a class from CMDIChildWnd and created the Icon, Accelerator and Menu. My view for this child frame is derived from CFormView and has a chart control an a button control. I call/create the child frame by choosing a menu entry as follows: void CmyApp::OnAnsichtnewView() { // TODO: Fügen Sie hier Ihren Befehlsbehandlungscode ein. CMainFrame *pFrame = STATIC_DOWNCAST(CMainFrame, m_pMainWnd); pFrame->CreateNewChild(RUNTIME_CLASS(CmyChildFrm), IDR_myTYPE); CRect cr; pFrame->GetActiveFrame()->GetClientRect(cr); CDocument *pDoc = pFrame->GetActiveDocument(); CRuntimeClass *pRTC = RUNTIME_CLASS(CmyFromView); CCreateContext context; context.m_pCurrentDoc = pDoc; context.m_pNewViewClass = pRTC; context.m_pLastView = NULL; pFrame->GetActiveFrame()->CreateView(&context); } In my view class I've overwritten the OnSize method as follows: void CmyFormView::OnSize(UINT nType, int cx, int cy) { CFormView::OnSize(nType, cx, cy); // TODO: Fügen Sie hier Ihren Meldungsbehandlungscode ein. if(m_Chart.GetSafeHwnd() != NULL) { m_Chart.MoveWindow(0, 0, cx-30, cy); AfxMessageBox("Chart resized"); } if(m_Button.GetSafeHwnd()) { m_Button.MoveWindow(cx-30, 0, 30, 30); AfxMessageBox("Button resized"); } AfxMessageBox("Form resized"); } When I run my programm and do a resize on my new child, I only get a "Form resized" MessageBox. So, obviously m_Chart and m_Button don't get a Hwnd but I don't know why. Can anybody give me a hint on this? Thanks, Frank.

    C / C++ / MFC c++ help question

  • create additional child frame with different view?
    F Franken

    Hi all, in my application (MFC MDI Document/View) I use a datagrid and a chart control, each of them in a static splitter pane. Now, I want to provide a different view on my data and therefor I want to open a new child with a "different" view class (derived from CFormView) while the first view is still open. The menu which is displayed should depend on the View which is currently active. Can anybody give me a hint and show me the pitfalls? Thank you, Frank.

    C / C++ / MFC c++ question

  • Resize a Control inside a CSplitterWnd?
    F Franken

    Thank you, it works. As in all other resizing dialogs. I don't know, why I've got problems with this. Somehow I thought that my CMDIChildFrame should handle the WM_Size message.

    C / C++ / MFC tutorial question

  • Resize a Control inside a CSplitterWnd?
    F Franken

    Hi, does anybody know how to resize a control or a CFormView view which contains the control when the view is nested in a CSplitterWnd Pane? I want the control to adapt its size when the size of the splitter window changes. Thanks, Frank.

    C / C++ / MFC tutorial question

  • How to resize a FormView inside a Splitter Pane?
    F Franken

    Hi, I've implemented a static splitter view in a MDI project. It contains 1 row and 2 columns. The left column contains a grid control and the right column contains a charting control, nested on a CFormView. Now, I want the FormView which contains the chart control to change its size when I change the size of the splitter window. I know if I change the size of a FormView or a dialog it's very easy. You only have to call GetSafeHwnd() for the control and than MoveWindow with the new coordinates. But how do I change the size of the FormView itself inside the splitter window? Thanks, Frank.

    C / C++ / MFC question css tutorial

  • DataGrid in MFC?
    F Franken

    Hi Community, for my next project, I need a kind of data grid in my application. Is there a handy ActiveX-control which I can use on a FormView, or is there a way to use the Windows Forms DataGridView in my MFC-App? Thanks, Frank.

    COM c++ css winforms com question

  • How to use standard bitmaps in a toolbar
    F Franken

    Thank you Kitty5, but there should be a way to use all these standard bitmaps. I think they are somewhere in the system32 folder in windows xp. I don't like to redraw these icons if they already exist. Yes, it is easy for such simple bitmaps like a green triangle as play button or a red circle as record button. But it becomes harder if you try to redraw e.g. this folder bitmap of the open icon.

    C / C++ / MFC tutorial question

  • How to use standard bitmaps in a toolbar
    F Franken

    Hi all, I would like to create a toolbar with standard bitmaps like a play, record and a pause button but I do not know where I can find these bitmaps or how I can use these. Could somebody give me a hint? Thanks.

    C / C++ / MFC tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups