hey guys..I have a hard time hiding the modal dialog box...to tell u exactly..what i am doing is..I am trying a design a UI for my own application in MFC..its kinda setup assistant..
In the 1st dialog box i have NEXT button so when I click that it has to hide the 1st dialog box and move to the 2nd dialog box..where i have some controls i...
Is it possible to create an MFC static library (.lib) and link it to a non-MFC C++ application? If so, does anyone know how to create an MFC static library? Visual Studio doesn't seem to have any templates like that.
...
I have several forms that have common sections and I would like to pull them out into their own resource. Basically I am looking for a way to make a CFormView into a windows control that I can insert into another CFormView.
...
Hey guys..I am designing a set-up wizard using CPropertySheet and CpropertyPage in MFC application...I have completed the design but the thing is..In normal CProperty Sheet there are four default buttons "BACK NEXT FINISH HELP"...but I want only NEXT and FINISH buttons ...I used the following code to do that but its giving me a run time ...
In the CString header file (be it Microsoft's or Open Foundation Classes - http://www.koders.com/cpp/fid035C2F57DD64DBF54840B7C00EA7105DFDAA0EBD.aspx#L77 ), there is the following code snippet
struct CStringData
{
long nRefs;
int nDataLength;
int nAllocLength;
TCHAR* data() { return (TCHAR*)(&this[1]); };
...
};
...
I am using CPropertySheet class for my design in MFC application,normally in CPropertySheet there would be 4 default buttons..I want to hide/delete the HELP button..I tried the following..but its not working/nither responding..I had this written in my CPropertyPage class
is there any other way...
m_psh.dwFlags &= ~PSH_HASHELP;
...
Hi,
I want to create full screen topmost (screen saver) window with MFC? How to create such full screen window in MFC? I tried to create win32 application and i am able to create fullscreen top most window but i want to create using MFC so later i can put different MFC controls on that window?
Please help me.
Thanks,
Jim.
...
I created an SDI application in vc++ having multiple views in it. When i re-size the SDI application it is getting flickered. I tried returning "TRUE" in "oneraseBackGround" function.
But that is causing my application refresh issue.
Please guide me on the same.
...
I have a dialog application in which I want to have clickable menu items at the top of the dialog. These items do not show a drop down menu but actually run the associated commands.
I did this by setting Popup=False in the dialogs properties and assigning a message-id but my problem is not having the ability to disable the item properl...
This function is called to serve each client in a new thread. in the consume function, these archives are read and written to but the function returns before the client finishes reading all the response so the socket goes out of scope and closed, creating an exception in client. I'm assuming that any write on the CArchive should block un...
Is it possible to create a local file inside an ActiveX control?
The other question is I am creating the activex using the wizard "MFC ActiveX control", does this mean that I can use all the MFC classes in this ActiveX control.
...
Hi Friends,
I have created an VC++ application with browser control in it. But it always displays "The Page cannot be loaded". But my internet connection is working fine and if i try the same in my browsers it loads the respective pages properly. It looks very strange to me. I don't have any proxy or firewalls in my system.
Please prov...
I derived a class from CListCtrl called CListCtrlCustomDraw, and use NM_CUSTOMDRAW handler to draw the list.
The problem is I have different fonts for selected item and unselected item, they are member variables of the list control, but when I use
m_list.SetColumnWidth(iCol, LVSCW_AUTOSIZE);
int nTextWidth = m_list.GetColumnWidth(iCo...
I need to open a dialog box instantiated from the same class twice. When I try this
CdelmeDlg dlg;
dlg.DoModal();
dlg.DoModal();
The second call opens the dialog only for a split second, then it is closed. My bet was there is a leftover message in the message queue, so I added this in between the calls
MSG msgCur;
while (::PeekMessag...
I don't seem to get any errors if I call SetItemText(item,subItem,string), on a value of subItem greater than the number of columns set up. But I don't seem to be getting the data back when I call GetItemText. Just wanted to check that's correct, and I can't use SetItemText as a more convenient way to add some custom data - SetItemData r...
Some code I am working on uses COleDataSource::CacheGlobalData, passing as CF_TEXT an HGLOBAL pointing to some memory allocated for the text. I want to also add a numeric value, so ythe drop-target can access either the text or numeric values.
How can this easily be done? Can a 2nd CacheGlobalData call be made with a different CF_ value...
I'm parsing an XML using XMLLite. I notice that when its a relatively large file, the reader's pointers fails to locate the next element(tag) of the file. When i reduced the contents of the file, it could successfully parse.
The reader continually shows node type "XmlNodeType_None" and fails to complete parsing, getting stuck in an infi...
So I gave up implementing my own memoryleak tracking (in this question http://stackoverflow.com/questions/1855406/overloading-new-and-delete-problem ) and try to use the MFC functions to identify my memory leaks.
So I do exactly what's described here:
http://msdn.microsoft.com/en-us/library/8ky2wh64%28VS.80%29.aspx
this is my code:
#...
I am using CWinFormsControl to host a Windows Forms UserControl in an MFC dialog. I have set the property DoubleBufferd to true. According to the docs this results in AllPaintingInWmPaint and UserPaint to be set to true too (not sure if this matters). How can I force (or fake) the UserControl to draw its background transparent?
This is ...
Hey everyone,
I am writing a .Net COM DLL that runs inside a native Windows application.
I am attempting to inject an additional pane into this app's statusbar, and it does not have any specific implementation to do so, so I am trying to subclass the app's statusbar myself.
I am using the Win32 API SetParent() to switch the parent of ...