mfc

For graphics drawing on WinCE platform, which language is faster: MFC VC++ or C#

Hi, I need to draw extensive realtime graphics on WinCE platform. For that purpose, which language is better between VC++ and C# to get high performance? Moreover, the graphics application that we would be developing should be linked to currently existing c++ modules. If writing intermediate layer involves lot of effort if we choose c#, ...

why does thread procedure should be static or member function

why does thread procedure should be static or member function? any valid reason? ...

Is there a way to automatically adjust a list column in MFC?

The program I'm editing uses this code to generate the columns in a listbox: m_list.InsertColumn(0,_T("Parameter"), LVCFMT_LEFT, 90); m_list.InsertColumn(1,_T("Show?"), LVCFMT_LEFT, 50); m_list.InsertColumn(2,_T("Value"), LVCFMT_LEFT, 400); When the user is using the program, the user can click on a row (cell? I'm not sure of the nome...

MFC CFindFile::FindNextFile usage

The documentation for CFindFile states that Nonzero if there are more files; zero if the file found is the last one in the directory or if an error occurred. To get extended error information, call the Win32 function GetLastError. If the file found is the last file in the directory, or if no matching files can be found,...

Dynamic menu using mfc

I would like to add a menu item to my main menu and then populate it with items at run time. How would I do this? And besides adding items how would I have a message map entry for them since I do not know the id? Thanks and sorry for my english. ...

Can MFC application run on operating system other than windows?

I need to create a dialog based GUI using VC++/MFC. I am sure it will work with windows OS, but will it work on Linux/Unix or other OS other than windows? Is QT an alternative good option? ...

Showing .NET child window under Win32 unmanaged host

I am writing now plugin for FL Studio 9. I have sdk which is intended to work fine with MFC or Win32 Visual C++ 2008 Project. The question is how to make CLR C++ plugin work in Win32 Application in general? I've build the plugin correctly - it is loaded by FL Studio, but only one thing which works is plugin Width and Height properties of...

win32 CTabctrl: Drawing "child" windows in the active tab

Hi all. I have a resizable dialog that contains a CTabCtrl, the tab control has 4 tabs that when clicked on displays one of four different CTreeCtrls. I have derived a class from CTabCtrl, which keeps track of its "child" controls like so: ... class Container: public CTabCtrl { vector<CWnd*> _children; .... int Container::AddTab(CWnd*...

professional-quality charting library for c++

Hi, I'm writing an application in c++/MFC and there's a need to create good-quality charts (bar charts, line graphs, maybe even some custom graphics...). As an additional feature, I need to be able to export my graphs in MS Office Graph/Drawing binary file format (so that people can see them in Excel, bitmaps and metafiles just don't c...

error C2065: 'PpFixedFormatType' : undeclared identifier

m_Pre.ExportAsFixedFormat(path, PpFixedFormatType.ppFixedFormatTypeXPS, PpFixedFormatIntent.ppFixedFormatIntentPrint, Microsoft.Office.Core.MsoTriState.msoTrue, PpPrintHandoutOrder.ppPrintHandoutHorizontalFirst, PpPrintOutputType.ppP...

WebBrowser Control (MFC) created in seperate thread working in Windows 7 and Vista, but Windows XP

Hello. I have CWnd in main thread, and a CWnd with a WebBrower control created in a seperate thread. This is necessary, because the WebBrowser navigates to urls which have javascripts running which will block the WebBrowser. So I with the WebBrowser control in a seperate thread I prevent the GUI Thread vom hang. Also I have done this in...

how can i color titlebar in mfc in winc

i am trying to change color of titlebar but as onncpaint is not supported by winc what to do to color non client area like title bar? ...

scroll bar in mfc

how to add Scroll bar to a static text in MFC dialog box ...

how to make title bar less window in mfc by code?

how to make title bar less window in mfc by code? ...

How to open two dialog boxes at once in C++ MFC?

Hi, Is it possible to open more dialog boxes at the same time in C++ MFC, when I press a button? How? (One for background: full-screen and semi-transparent, and one for a dialog box.) Thank you! ...

How to make checkbox background transparent ?

i use the following code to make check box background transparent or in my case off white but i can't find what wrong with this plz help me how to do this? HBRUSH CfvcolorDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); pDC->SetBkColor(MYCOLOR); if((HBRUSH)brush == NULL...

Infinite Thread that may or may not run a CDialog each loop

I am working on a MFC project where I need a separate loop that will run continually or once every few seconds, and each time it may or may not need to run a Dialog to get some input from the user. I was thinking of using AfxBeginThread, but from what I have read about it, it doesn't really work with a continuous loop. ...

Is it possible to change the location of the main top-level menu in an MFC MDI app?

I have an app with a customized frame (i.e., caption/titlebar, borders). I customized the frame by removing the WS_CAPTION style, and overriding OnNcCalcSize to reserve a custom-sized area for the caption, which the app paints in OnNcPaint. A side effect is that the menu bar no longer displays, which is OK because I want to customize th...

Fast drawing using MFC GDI

Hi All, I am creating an application which has some of the features like a CAD application has like zooming, panning etc. I have a problem regarding drawing of entities as quickly as possible. I have double buffered the drawing to make it flicker free but I am stuck in clipping the region of the drawing that is I want to draw on those e...

CLR Controls in MFC

I'm using CLR control in MFC application and after while the dialog get hang. I don't know why and I don't know how to cover it. Could you please help me ? ...