The Microsoft Foundation Class Library (MFC) is a C++ framework for Windows GUI programming.

learn more… | top users | synonyms

0
votes
0answers
6 views

VS2008: “Resource file opened in another editor”

But it's lie! Good day to all! I have the following problem: when I trying open resource file PriceCalculationUI.rc Visual Studio 2008 tell me that file opened in another editor (in vs2008 I have ...
0
votes
0answers
19 views

c++ mfc: After change the background color through system,how to get the background color

I change the window color through right-click on the desktop,select property-> appearance->advance to RGB(109,120,205). But when i use GetSysColor(COLOR_WINDOW) or CDC::GetBkColor() I still get ...
-2
votes
1answer
30 views

How to store current time in registry?

Is there a way I can store time in registry? I am using MFC and working with CTime objects (which allows me to use CTimeSpan to calculate time difference) but any c++ solution would be great.
0
votes
0answers
15 views

Convert ICON to HBITMAP to be displayed in popup menu?

I'm trying to add bitmaps to a popup menu. The problem I have is that I create my bitmaps from ICONs dynamically, and I have problems for 24bit color icons vs 24+alpha (32bit) color icons. It seems ...
0
votes
1answer
24 views

how to map an mfc toolbar button event with a class method?

I'm using an MFC application with a toolbar. I need to use a button of this toolbar in some class. But, i don't find how to map the toolbar button events to methods of my class. I saw in the ...
0
votes
1answer
34 views

SetTimer from non-static function

I write code that detects key press when window not in focus: // MainHamsterDlg.cpp : implementation file #include "stdafx.h" #include "MainHamsterDlg.h" // MainHamsterDlg dialog ...
-1
votes
0answers
9 views

hosting winforms application on MFC

It is possible to host a WinForms application (not usercontrol) on MFC? I found a solution that moves the parent of the main window but does not always work
0
votes
1answer
10 views

MFC | EditControl | on Run time

I am new to MFC. I need to know how to change the properties of editcontrol box in run time. Like If I want to change the EditControl Box to readonly mode on run time. Thanks, Ani
0
votes
0answers
28 views

How do I correctly convert an ICON to a BITMAP using MFC?

I'm loading an ICON of another application via HICON ico = ExtractIcon(NULL, L"path\\to\\OtherApp.exe", 0); How can I create a CBitmap object from this icon? Specifically (not really answered in ...
0
votes
1answer
18 views

Adding controls at runtime in from derived class in MFC

I have two classes. class DialogBase is inherited from CDialog class DialogDerived is inherited from DialogBase. BOOL DialodDervied::OnInitDialog() { CDialogBase::OnInitDialog(); //Add ...
0
votes
0answers
16 views

TCP communication between console and MFC

I want to implement TCP communication between win32 console application and MFC application, I made console application as client and MFC application as server, but the server cannot accpet the ...
0
votes
1answer
15 views

Animating a CImage to fade in on creation

I currently have a CView which consists of a single centralized CImage which displays upon immediate loading of my application. I want to prettify it a little by making the CImage fade in on startup ...
0
votes
1answer
23 views

Save & Load scroll bar state in a dialog based MFC application using serialization.

I am working on a dialog based MFC application that consists of check boxes, scroll bars, buttons, edit control etc. I am trying to save the application's current state into a .txt file and then load ...
1
vote
0answers
14 views

Determine if glyph exists in a font on WinCE

The generic Windows API provides the GetGlyphIndices() function which determines if a particular glyph in a given font is renderable. However, this function is not available within the WinCE 6.0 API ...
0
votes
0answers
32 views

Getting errors on project build when a class is added to the mfc dialog

I have already an existing project in mfc working in visual studio 2010. The project is a combination of multiple projects of which one develops output of executable(.exe) type while the others ...

1 2 3 4 5 364
15 30 50 per page