mfc Questions

4

Solved

I am using CFileDialog, I have set the initial path like below , as shown in the code. It's not working . Correct me if I made a mistake. CFileDialog* filedlg = new CFileDialog(TRUE,(LPCTSTR)NULL...
Chamois asked 23/4, 2013 at 8:35

7

Solved

I have a CEdit derived control that displays the string "N/A" when the undelying data is null. I recently added code to empty the control(SetWindowText("");) when it gains focus and set if back to ...
Ellsworth asked 3/7, 2012 at 15:20

3

Solved

I need a way to display a PNG image with transparent background on a background with gradient color. I have tried this: CImage img; CBitmap bmp; img.Load(_T(".\\res\\foo.png")); bmp.Attach(img.De...
Dinar asked 22/10, 2014 at 21:38

6

Solved

I have an MFC app which I have been working on for a few weeks now, I want to manually set the dimensions of the main frame when it is loaded, can someone give me a hand with this, specifically whe...
Polyzoarium asked 7/10, 2008 at 13:3

2

Solved

(I've searched SO answers and found no clear solution to this problem.) I'm working on a MFC GUI program. This program runs various child programs including console program and shell command scrip...
Wuhsien asked 20/1, 2011 at 4:51

5

I want to show a modeless dialog on the screen and display some information in it. However if I use it the following way, it has some problems: function() { showdialog(XXX). //heavy work. update ...
Celibate asked 22/12, 2008 at 10:16

4

Solved

I am working on Win32 UI. I want to know the difference Between GetDC and BeginPaint. When to Use which API and when not to use which API.
Bongbongo asked 30/4, 2011 at 10:56

5

In VC++ 6.0, MFC I want to select a multiple files CFileDialog opendialog(true); // opens the dialog for open; opendialog.m_ofn.lpstrTitle="SELECT FILE"; //selects the file title; opendialog.m_ofn...
mfc
Crumbly asked 10/7, 2009 at 5:52

2

Solved

I wonder what exactly the difference is between GetbufferSetLength(some_size) and GetBuffer(some_size). The documentation isn't very clear to me and to me it sounds pretty much both functions do mo...
Mam asked 23/2 at 16:0

1

I'm having a hard time opening the interactive resource editor in a MFC CMake project that otherwise compiles and runs just fine. The project files are laid out as follows: . ├── CMakeLists.txt ├──...
Dysphasia asked 27/9, 2018 at 13:0

4

Solved

How can I get and set the 'read-only' property of an edit box?
Cavafy asked 20/1, 2009 at 20:44

6

Solved

I have an ANSI project. I need to set the titlebar of a CDialog derived class to a Unicode text. BOOL CMyDialog::OnInitDialog() { CDialog::OnInitDialog(); ::SetWindowTextW(GetSafeHwnd(), PathFi...
Bobine asked 23/2, 2012 at 9:55

3

This is as basic as it gets. I want to catch when the user selects an item from a CComboBox (actually, a subclass of CComboBox). Tried lots of combinations of OnCblSelChange, OnCommand. Guess I h...
Tirewoman asked 30/3, 2009 at 20:38

15

Solved

But it's a lie! Good day to all! I have the following problem: when I try to open the resource file PriceCalculationUI.rc Visual Studio 2008 tells me that the file is opened in another editor (in ...
Ludhiana asked 14/6, 2013 at 6:38

6

Solved

How can I determine which is the default browser in my system programatically. The code must be developed using vc++ Is there any API for this ? Where in the registry is the default browser value...
Charleencharlemagne asked 9/4, 2009 at 7:38

6

3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error MSB3073: The command "copy "C:\Users\jlee\Desktop\10_IPG2.7_4\InitialPowerGadget\Release\EnergyLib.d...
Seeseebeck asked 11/11, 2013 at 19:32

4

Solved

I have a C++ project that references many other projects/libraries. This is for an application that was created many years ago. About every once a year it is updated and a new version is done. I've...
Mcnutt asked 21/1, 2015 at 21:44

1

Solved

I'm a long time Java/C# developer, and I'm trying to teach myself C++, specifically MFC, using a book by Richard Jones that was published in 2000. I'm getting this compile error: 'ATL::CStringT&lt...
Potbelly asked 25/7, 2023 at 23:17

5

Solved

I am getting #error WINDOWS.H already included. MFC apps must not #include windows.h But i dont know how do i find out because of which file this is happening Thanks
Nikolos asked 19/6, 2009 at 12:51

3

Solved

I unable to use GDI+ 1.1 classes in my VS2012 MFC C++ project (on Win7). Classes Image, Bitmap, Graphics works just fine but when I try to declare an object of Blur class (or other v1.1 classes) I ...
Approximate asked 25/11, 2014 at 12:32

6

I haven't been able to find a concise chunk of code that allows me to add/display tooltips to a CStatic (and CLed) control. Obviously, the standard code to do so does not apply for this type of con...
Jerilynjeritah asked 13/11, 2012 at 15:1

4

Solved

I've come across a situation where I know a code I've created an MFC app in Visual Studio 2008 that generates a Tray Icon and some notifications. I've read I can use a different NOTIFYICONDATA str...
Blackfellow asked 4/11, 2010 at 15:10

2

Solved

It is necessary to switch off the "ClearType" property of the default font for all dialog controls. It is possible to do that for one control by setting logfont.lfQuality = ANTIALIASED_QUALITY T...
Whippet asked 19/7, 2010 at 16:26

9

Solved

How do I convert from CString to const char* in my Unicode MFC application?
Allurement asked 13/5, 2009 at 17:31

2

Solved

I've got a huge legacy project which uses MFC and COM. The idea being to migrate it to Linux (winelib doesn't work for this), I need to identify the portions of the code that use MFC. Strange thing...
Volkman asked 4/9, 2012 at 11:38

© 2022 - 2024 — McMap. All rights reserved.