I am working on a Windows application (built with VS 2019) that relies heavily on MFC functionality. I have a class that is derived from the CWnd class that contains CMFCButton objects (children) which are defined dynamically within the OnCreate handler for the class. I would like for the CMFCButton objects to send the WM_PARENTNOTIFY ..
I ran into a newbie problem with my first VC++ MFC app (actually, I ran into many problems, but RTFM and DuckDuckGo helped to solve them without crying here for help. Except this one!). Bear in mind that I am playing with this as a tutorial for myself, kind of a learn by example project, ..
I’m doing some final cleanup in my code for straggler functions. My output pane is taken directly from the out of the box OutputWnd.cpp created by the MFC wizard. When you right click on the output pane with the 3 tabs it creates, the context options are copy/clear/hide. I have copy and clear working. But ..
I am working on a legacy code that uses MFC and Visual C++ libraries. I need to create a vector of CString that can hold Cyrillic words as shown in the following sample code snippet: std::vector<CString> vecContainingCyrillicWords; vecContainingCyrillicWords.push_back(_T("English Words")); vecContainingCyrillicWords.push_back(_T("Русские слова")); PROBLEM: As seen in the debugging result below, the Cyrillic word is not correctly ..
I have 4 buttons that have no direct application to my program. I would like to hide or remove them. I’ve searched to find out what they are called…they look like navigation, left/right arrows, next/previous..I can’t seem to find what they are called. I have looked on the Microsoft site and looking at the CTabView ..
I have wondered about how limited is the provided set of messages controllers for CListBox control. I am already using ON_LBN_SELCHANGE in the message map of the CDialog containing this control. I also would like to use ON_WM_RBUTTONDOWN, so I have derived a class CMyListBox : public CListBox, so now i can map that message ..
I have a simple c++ console application I use to drive a colorimeter. The functions that interface to the device were provided in the form of a MSVC DLL with __cdecl. I was also given the corresponding .h and .lib files. All processing rests on an Event handler that needs to be instantiated on startup. ..
I ask your help to identify and fix an issue with CString and CRecordset. I use those objects all the time and I normally have no issues, except for one situation here described. If I assign a string longer than CRecordset, when I execute the Update(), I get an exception. This is a piece of ..
I want to use Ctrl + Shift + F4/F10. Them does not apper in OnKeyDown, OnChar, F4 does not appear on OnSysKeyDown. I made shortcuts, and put to the accelerator tables IDR_MAINFRAME and IDR_IDETYPE so. I handled them in class CIDEView. The handler does not called. Have you any idea? Source: Windows..
So I’m using the MFC wizard created output pane and everything works as I want it. What I’m trying to figure out is how to hide/show a specific tab with the user selecting it from the menu. I have two tabs, one is status, one is debug…I have a user menu option to turn the ..