Top "Mfc" questions

This tag should be used for questions concerning Microsoft Foundation Class Library (MFC), a C++ framework for Windows desktop GUI application programming.

How to prevent MFC dialog closing on Enter and Escape keys?

I know one method of preventing an MFC dialog from closing when the Enter or Esc keys are pressed, but …

c++ mfc
App does not run with VS 2008 SP1 DLLs, previous version works with RTM versions

Since our switch from Visual Studio 6 to Visual Studio 2008, we've been using the MFC90.dll and msvc[pr]90.dlls along …

c++ visual-studio-2008 mfc
How to Set the Initial Focus of the control in the particular window?

I created an application in which I use window procedure to keep track of all the controls in the window. …

c++ windows winapi mfc setfocus
Windows 7: how to bring a window to the front no matter what other window has focus?

I'm implementing a task-bar replacement, dock-like application-switcher style program. It's doing some unique stuff with OpenGL, and with keyboard shortcuts, …

python windows winapi mfc
Dynamic menu using mfc

I would like to add a menu item to my main menu and then populate it with items at run …

c++ mfc
how to find a window's SW_SHOW/SW_HIDE status

I am trying to determine a window control's visibility that has been hidden or enabled with CWnd::ShowWindow(). (or ::ShowWindow(…

c++ winapi mfc show-hide
Why doesn't OnKeyDown catch key events in a dialog-based MFC project?

I just create a dialog-based project in MFC (VS2008) and add OnKeyDown event to the dialog. When I run the …

c++ visual-c++ mfc keydown dialogbasedapp
Creating HBITMAP from memory buffer

I have an application which loads some blob data out of a database which can represent png formatted or raw …

c++ mfc bitmap gdi hbitmap
DWORD_PTR, INT_PTR, LONG_PTR, UINT_PTR, ULONG_PTR When, How and Why?

I found that Windows has some new Windows Data Types DWORD_PTR, INT_PTR, LONG_PTR, UINT_PTR, ULONG_PTR …

windows winapi mfc
Redirect stdout and stderr to the output debug console of microsoft visual studio

I am using microsoft visual studio to do C++. I don't see std::err and std::out in the output …

visual-studio visual-c++ mfc