I am having a ListCntrl in my Ui i will be having 3 columns and my second colum must be a dropdown like combobox . i dont know how to modify the default ListCntrl can any 1 help me out. I have Codejock Extreme ToolkitPro 13.4.0 installed. I am new to Ui design can any one help me out please
...
i want to make an edit control box in which user can enter some value.
so i drag an edit control to my dialog. add a variable "value" of type CString to this edit control. then i add an event handler of message type EN_CHANGE to this edit control. what should i do next?
...
All functions return CString, this is a MFC code and must compile in 32 & 64 bits.
Currently I'm using
CString sURI = GetURL();
sURI += GetMethod();
sURI += "?";
sURI += GetParameters();
Exists any manner to do the same like:
CString sURI = GetURL() + GetMethod() + "?" + GetParameters();
...
Im trying to get a CDialog that has no border or frame to show in the task bar.
It is created in the InitInstance of CWinApp (used to update the app) and i have tried setting the WS_EX_APPWINDOW flag but it still doesnt show in the task bar.
Any ideas?
Edit:
As defined in the resource:
IDD_UPDATEFORM_DIALOG DIALOGEX 0, 0, 246, 124
S...
i have made a file open dialog, it contains an edit control whose variable is "path" that contains the file name. what i want is to use this variable's value in other dialogs but it gives the error that "path" is an undeclard identifier.
i declare path by right click on edit control, add a variable of CString type. path variable gets its...
hi all,
1.i have derived a class from CStatic called CLed_arr.
2.a cstatic control named IDC_leds was added to the dialog window in resource editor.
3.a member var called m_led_arr of the class CLed_arr was created for this IDC_leds.
4.the class CLed_arr contains an array Led[16] of objects of class CLed.
5.the class CLed itself is deri...
Dear All,
I would like to access to the user selected color in a color pallete added to a Ribbon bar. By now I have created the Ribbon button, added it to the panel, added an event to handle the "click" on that button and overwritten the OnEraseBkgnd(CDC* pDC) in my view class.
I present some code snippets. I at this stage I am not abl...
I am using Layered windows and they seem to impose quite the performance penalty (one of my cores is used completely). Is there any way to tweak performance with layered windows? Is Direct2D a viable alternative? (my layered window needs to have per-pixel alpha).
thanks,
H
...
hello
i am doing a mdi project in visual c++ using mfc
i am using a CArray to save and load data to documents. CArray contains members of a custom class of mine.
Saving and loading works fine
I get access violation when closing a document that i have opened, and debugger points me to carray.
the weird thing is that i can close withou...
Hello,
I developed an MFC application using VS2008 and the MFC featurepack.
This application UI is using a ribbon.
I now need to have F10 as a proper shortcut for one of the critical feature of my application but I seem to be unable to set the accelerator correctly as it always use the default ribbon accelerator over mine.
Any idea ho...
Currently, we are working on a C++ legacy code base, which consists of several software components.
One of the components, are written in a way that is extremely difficult to maintain. (For example, memory allocation is done in X place, but memory de-allocation is done in Y place. This make memory management a painful job). Till now, we...
Hello all
i have simple app that i try to compile with VC express and using the :
microsoft platform sdk for windows server 2003 that contains mfc and atl
now i have this simple code :
CString strValue("test");
CString s = strValue.Trim();
LPCTSTR lpStr = (LPCTSTR)strValue.Trim()
that give me compilation error :
c:\dev\test.cpp(463) ...
Until now, I never really needed the Winapp ExitInstance() of a large MFC (Single Document Interface if it matters) app I'm working on. But now I do, mainly to cleanup memory alocations, unload some DLLs, etc. Well I soon learned by the obvious memory leaks and such that ExitInstance was not being called. Have I missed something obvious?...
Dear All,
I would like to add transparency and shading to my application written using MFC and Visual Studio 2008 Prof. At the moment I am using Ribbons which makes the app look good but the mainframe (is a CFormView based app) is terrible! I hate the grey background color and the blue titles on the groupboxes. Even changing the colors ...
Hi all,
I have a third-party legacy software that uses Automation to control MS Excel (using MFC/C++). The code is straightforward:
_ApplicationPtr xl;
HRESULT hr = xl.CreateInstance("Excel.Application");
This worked perfectly since Excel 2000, 2002 (XP), 2003 and 2007; however, after installing Office 2010, the CreateInstance call ...
Hi
- I was just wondering is that possible to use my existing MFC creadted DC to associate with QPrinter so that it directly uses this existing DC rather creates its own with QPrintDialog??
Does Qprinter also does backing store as Qwidget does?I mean does this creates an offscreen image before printing?
Regards,
Harris
...
Dear All,
I would like to strecth horizontally the image of the ribbon (possibly also veritcally..). I found the virtual function StretchHorizontally() (http://msdn.microsoft.com/en-us/library/cc701788.aspx) but unfortunately I have no idea on what to write in the code. I assume I have to extend the CMFCRibbonButton class and implement...
Hi,
I used a MFC virtual list control to enhance the performance and I handle GetDispInfo(NMHDR* pNMHDR, LRESULT* pResult) to populate the ListCtrl. The relevant code in that method is as follows:
if (pItem->mask && LVIF_TEXT)
{
switch(pItem->iSubItem)
{
case 0:
lstrcpy(pItem->pszText, rLabel.m_strText); ...
In a VS2008 debug build of my Windows mobile 6 application, I'm getting an exception thrown whenever I try to write to a newly created CFile using a CArchive. The call stack, with relevant code inserted, is as follows;
MFC90UD.DLL!ATL::CTime::CTime(int nYear = 60056, int nMonth = 5, int nDay = 27, int nHour = 22, int nMin = 44, int nSe...
Hi..... everybody,
Am doing a calculator programme in vc++/MFC dialog application. Thier, i want to change the foreground and background colour of a push button in dialog. I have no idea, how to change.
Please suggests me with relevent code or example if any body have idea.
basu_sagar
...