I have implemented custom tooltips for a couple of controls in my application (MFC) but I would like to make it general for all the controls.
Right now I am calling TrackMouseEvent in WM_MOUSEMOVE and then catching WM_MOUSEHOVER (both in the overwritten function WindowProc of the control). But this way I have to duplicate code for every...
Hi,
We are using two different versions of Visual Studio 2008, the Pro and Standard one. I started a Visual C++ MFC project using the Pro version. My teammate wanted to use my project with the standard version, but all he gets are a lot of compile errors about missing afxheaders and stuff like that.
We are really helpless and don't kno...
I have a dialog that I want to place within another dialog and position relative to one of the controls on the main dialog.
void CspAceDlg::DrawResultsArea()
{
CWnd* pTabCtl = GetDlgItem(IDC_BUILDTABS);
CRect rectTabCtl; // Allocate CRect for control's position.
pTabCtl->GetWindowRect(&rectTabCtl);
int resX = rectTabCtl....
I am porting a C++ COleControl that frequently makes calls to SetModifiedFlag(bool). What is the equivalent call in .NET? The MFC documentation implies that this is only necessary when persistent state has changed, and I am unsure what would be considered persistent state in .NET controls.
SetModifiedFlag();
...
I'm currently designing my first ever GUI for Windows. I'm using MFC and Visual Studio 2008. The monitor I have been designing my program on has 1680x1050 native resolution. If I compile and send my program to one of my coworkers to run on their computer (generally a laptop running at 1024x768), my program will not fit on their screen.
...
Hi,
I am using Visual Studio 6.0 (VC++ with MFC) in Windows XP platform. I am trying to create a group box with the title of the group box as a check box. My intention is this: If the check box is enabled, the controls inside the group box should be enabled; or else disabled.
Is this possible to accomplish? If yes, please give me some ...
how i can add CWinAppEx class in vc++ 6.0 dialog MFC ,because i want to handle application state.How should i get this class.
...
I'm working on a project that is using the Qt/MFC Migration Framework and I'm trying to reuse some existing MFC controls inside of a Qt dialog.
Does anyone know if it is possible to insert an MFC control (CDialog or CWnd) inside of a QTabWidget. Right now we're doing the opposite, we have an MFC dialog with a tab control which is popula...
After changing the text in a tab control's tab header, how do I tell it to recalculate the layout of the children (e.g., if the new tabs take up two rows)?
I am changing the tab text like this, from within a property page:
TC_ITEM ti;
ti.mask = TCIF_TEXT;
ti.pszText = _T("whatever....");
CTabCtrl *pTabs = ((CPropertySheetEx *)GetParent...
Hi!
I just tryed the standard way for adding CToolbar to a dialog on the new CMFCToolBar. But it doesn't work. Befor I dip into the new implementation, I want to know if it actually possible?
...
We have an installer application.
In that we have one dll related to our application.
We created setup with all respective files.
We used "Install Shield 6.3" and created a setup file.
After created build. The build is working in xp, not working in 2000.
It is showing error message as Couldn't load .dll only in win2000.
What could be ...
I have a COM method which returns a MFC CRect:
GetMFCRect(LONG* pRect)
*((CRect*)pRect) = m_currentRect;
In my .NET application I try the following:
int pointer = new int();
Rectangle rc;
IntPtr pIntResult;
unsafe
{
int* p = &pointer;
_COMobj.GetMFCRect(ref *p);
pIntResult = new IntPtr(p);
rc = (Rectangle)Marshal.PtrT...
I am using a QWinWidget inside of an MFC dialog and the QWinWidget is not drawing itself correctly and it is not handling keyboard input correctly.
Repainting [Unsolved]
Within the QWinWidget, I have a QTableWidget. When I scroll the QTableWidget, it does not redraw itself until I stop scrolling, at which point it redraws everything. S...
I've been experimenting with the DXUT functions for Direct3D applications in the March 2009 DirectX SDK. They seem to have many useful features including auto detection of DirecX10 or DirectX9 and window management features that bypass a lot of the tedious window management tasks generally required by Direct3D. However, I'm having a pr...
I have converted a mixed mode MFC application from VS2005 to VS2008. It is compiling OK but when starting the application I get an assert in afxwin1.inl because afxCurrentResourceHandle = NULL.
This is before MyCWinApp::InitInstance is called. The call stack is
mfc90d.dll->AfxWinInit (with HINSTANCE = NULL)
myapp.exe!InternalDllMain
my...
Alright, this has been bugging me for some time now.
I have a Property Frame with 5 Property Pages in it.
I created it using this COM method:
OleCreatePropertyFrame
The basic result is it creates a modal dialog with a tab control built into it with which I can switch from one property page to another.
The issue is when I switch to a t...
I want to use Python to access MFC document files generically? Can CArchive be used to query a file and view the structure, or does Python, in opening the document, need to know more about the document structure in order to view the contents?
...
Is it worth studying COM MFC ATL WTL now?
...
Im trying to add printing fucntionality to my app. I display the CPrintDialog to get the printer options. How do I get the printing range option enabled ? Currently this option is disabled when i doModal() the dialog.
...
I have tried to make the fullscreen feature of a SDI application with splitter windows by following the forum link. However, my status bar, system menu as well as the title bar of the application have disappeared. Do you have any suggestions on any easy ways of getting these back (or if I have to use different method of making the applic...