mfc

Is there such a thing like a Printer-Markup-Language

I like to print a document. The content of the document are tables and text with different colors. Is there a lightwight printer-file-format which i can use like a template? PS, PDF, DOC files i think are to heavy to parse. May there exist some XML or YAML file format which i can Easy create (maybe with a WYSIWYG-Editor) Can parse and...

multiple top-level windows

A single threaded Win32 GUI application has multiple top-level windows. In a message handler for one of the windows, it displays a modal dialog (for example, by using the MessageBox function). The other windows in the application still work as usual, even though the only thread in the application is waiting for the modal dialog result. ...

Can I add MFC support to an Existing ATL COM project

I have created a Shell Extension using ATL COM Object . But during creation I haven't added MFC support. Can I change the setting now to add MFC support ...

How to draw like this in CView

How to implement the list appearance which showed in the image in a CView ...

MFC DLL using C++ with Visual Studio 2008

Hi! I can't seem to find any walk-trough on how to create a MFC DLL using Visual Studio 2008. My problem is the following. I need to use wininet.h with my DLL and my solution to that was to use MFC DLL. Anyhow trying to link my project gives me 5 Link errors I believe that the error is of a kind that I need to add Additional Library Dire...

Can I remove items from a ComboBox without changing the index of other items?

I have a CComboBox control with several items and I need to remove some of them, but the indexes of the remaining items should be preserved. When the combo box is populated, the item data is set like so: index = mycombo.AddString(temp); mycombo.SetItemData(index, static_cast<DWORD>(count)); where count is a loop counter, and should b...

[VC/MFC]why the app window is affected by other items which move across it ?

I've made two screen shots in order to make the problem specified. The normal style: the affected style after I move some windows such as browsers across it: I wonder why this happened?And How can fix this problem?I'm working with VS2008 on Windows. Thanks in advance! ...

how to track the event when user click on edit control in mfc

thers is event onchngeedit for edit control but how to how to track the event when user click on edit control in mfc but doesn't change anything.? ...

How to add a Text-only button in a toolbar in MFC

Hi, I need to show a text-only button in a toolbar in MFC. How can I do it? I'm using Visual Studio 2005, so I'm not using MFC Feature Pack classes. Thanks ...

Why arrow keys are not getnerating WM_KEYDOWN message VC++ ??

I am created a custom window and want to handle arrow keys ... But i don't know why they don't generate wm_keydown message ?? ...

Applications list disappear from task manager when launch MFC applcation

Hello! I write MFC application, but when i launch it, in task manager on applications tab all applications list are disapear. if i do active some applications then she appears in applicion list, and when i close my MFC app all aplications are appears in app list on application tab. Why this happening? ...

MFC personalized menu behaviour

I generated a MDI tabbed CView project using App. wizard using Personalized menu behavior. How can i disable personalized menu behaviour ( i dont want it), because i want to see the whole menu at once when i click it. Do i have to generate the project all over again or can i change something in the code to disable it ? ...

MFC - Problem using CSettingStore to open registry key

I would like to check if .NET 3.5 Framework is installed by reading the "Install" value of the key "Software\Microsoft\NET Framework Setup\NDP\v3.5". I am very happy to find out that there is an MFC class CSettingStore that can do the job easily but I found out the CSettingStore.Open always return false. The code is as follow: bool bOp...

Tab control like in FireFox in native windows app

Hello, I would like to enable tabbing for my application. And so far it seems I could use a tab control. The problem with it is, though, that it creates a border around the client area. What I want, is more like a FireFox tab control, that only takes up a row in the application and doesn't create any frames around client area. Does any...

CMFCPropertySheet not shown/created ?

Hi, I am trying to create a CMFCPropertySheet described in: http://msdn.microsoft.com/en-us/library/bb981937.aspx I declared a CMFCPropertySheet derived class called CPreferencesSheet m_PreferencesSheet in CMainFrame. I created a CMFCPropertyPage derived class called CPieceMovementPage and added it in: CPreferencesSheet::CPreferences...

How to make focus remain on all list control on same dialog box?

I have 3 list control on one dialog box but only one is showing focus. if i clicked on 2nd list control then focus disaappear from 1st one. Means at a time only one list showing focus. How to make focus remain on all list control on same dialog box? ...

How to send KeyDown message to all Child windows in MDI

I need to send a WM_KEYDOWN message to all the Child Windows in my MDI app. The idea being that a particular key press refreshes a window and I want to refresh all child wnds at just a single key press. Other than refresh there would be couple of more such functions like right/left/up/down arrow keys etc. that need to go to each of these...

Custom FileDialog in WinCE 6.0

I am newbie in WinCE Programming, i want to Create Custom File Dialog for our application, which has totally diffrent look and feel than the default windows file dialog.... I looked into many Flag value bt they won't worth it ... Any pointers will be helpful Thnks... Mukesh ...

Custom FileDialog in MFC or File Dialog in Expolorer mode

I am newbie in MFC Programming, i want to Create Custom File Dialog for our application, which has totally diffrent look and feel than the default windows file dialog.... I looked into many Flag value bt they won't worth it ... Any pointers will be helpful Thnks... Mukesh ...

how to add tab in multiple row in property sheet in mfc?

I am trying to make property sheet same as when we right click on my computer then property.how to add tab in multiple row in property sheet in mfc same as mycomputer property sheethow to add tab in multiple row in property sheet in mfc? iam attaching image also. ...