|
Then, how to hide the cmd window?
|
|
|
|
|
Hello all:
I want to print color images to a monochrome printer device, How should I do with the CDC class to let the image accommodate to the printer?
Lisoft
|
|
|
|
|
Hi, everyone:
I had a problem about how to show the hint text in a dialog just like what would happen when you move your mouse close to the button of a toolbar and wait for a moment. If the user put his/her mouse on a button for a moment, the hint text would show like that in the toolbar. Can somebody tell me what to do? Thanks!
|
|
|
|
|
Hi,
Use the following code. It will work
In Dialog's header add
CToolTipCtrl tooltip;
in Dialog's on initdialog add
tooltip.Create(this,TTS_ALWAYSTIP);
CWnd *pWnd = GetDlgItem(IDC_BUTTON_BC1);
tooltip.AddTool(pWnd,"Hello Testing ",NULL,NULL);
Add the PreTranslateMessage for the dialog and add the following code
tooltip.RelayEvent(pMsg);
Sujan
|
|
|
|
|
Have you looked at EnableTooltips() function and the TTN_NEEDTEXT message.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hello all,
Special thanks to Michael Dunn. I tried what you wrote to me, and it worked just fine. I'm talking about adding DefaultIcon to HKCU instead of adding to HKCR.
Here is another question.
I'm using system image list in my list control and I can't figure out how to show file icons from .exe files. All icons in my list control are shown right, except for .exe and .ico files. I know that I can't really read icons from those files and add to the image list since it's system image list(read only). Is there any other way I can show icons from .exe, .ico files in the system image list?
Thanks in advance, any help is appreciated.
|
|
|
|
|
Hello all. I'm new developing with Dev C++. But I'm worried. I don't see MFC library installed with Dev C++. Is there any thing I can do to use MFC with DevC? Where can I get the source and libraries? I tried looking at Microsoft's, but I found nothing.
Thanks for your help,
Kith.
|
|
|
|
|
that's normal, MFC are microsoft libraries for window oriented programmation. if you work with borland, you'll find other classes, and with DevC++ (that I didn't even heard of before) other else...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
if you work with borland, you'll find other classes...
Which I think they refer to as OWL. It's been nearly 15 years since I've used Borland's product so I could be mistaken.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Thanx for your replies. But what I meant is that is there any way of using MFC with other compiler/environment?
|
|
|
|
|
Anonymous wrote:
But what I meant is that is there any way of using MFC with other compiler/environment?
Nope, unless you purchase something like this[^]
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|
Possibly. I seem to recall a vague discussion about a library that someone had written that allowed MFC to be ported to Linux (or Unix). I have no details.
On Microsoft's site, it mentions that MFC has been designed to be portable to a number of platforms:
Because MFC is built on top of the Win32 API, any platform that supports the Win32 API can be targeted by an MFC application. A powerful aspect of MFC portability is that Win32-based platforms are not limited to Microsoft Windows. Through the use of the Windows Portability Layer, MFC applications built on Win32 can also be built to run under the Macintosh System 7 operating system.
MFC applications can target a large number of platforms today:
Microsoft Windows 95
Microsoft Windows NT running on Intel® processors
Microsoft Windows NT running on MIPS® processors
Microsoft Windows NT running on Alpha AXP™
Microsoft Windows NT running on PowerPC™
Microsoft Windows 3.1 using the Win32s® API
Apple® Macintosh (using the 68000-series instruction set)
Apple Macintosh (using the PowerPC™ instruction set)
In addition, Microsoft continues to working with companies licensed to provide the Windows API on UNIX and VMS™ platforms to make sure that developers can easily port their MFC applications to these platforms as well. These products are available today.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
DavidCrow wrote:
Which I think they refer to as OWL
OWL was discontinued a long time ago, and BTW that's why I switched to VC++
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|
toxcct wrote:
DevC++ (that I didn't even heard of before)
It's an IDE for the MinGW compiler.
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|
Hai Frens
Can any one guide me how to populate the MSFlexGrid using the data in XML file ? I need to traverse thru the XML file fetch the data and populate in the grid. kindly give ur suggestions.
Thanx
|
|
|
|
|
does anyone know how to communicate with the Windows MIDI driver,thru vc++??
|
|
|
|
|
Hello Friends,
I am using CListView in which I am displaying few images and underneath them I have some text for each Image. I want to change the color of the text of the individual item depending upon a boolean value for example when the boolean value is true then the text color of a selected item should be red and rest of the item's text color should be blue.
If I am using SetTextColor() member function then it is updating for all the items but only one item should be updated. Please help regarding the above problem
Thanks in advance.
Neelesh K J Jain.
|
|
|
|
|
Look at the articles here on CP in the ListView/ListCtrl section...there are tons of examples of owner/custom drawn list controls which do exactly what you request.
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Hi Hockey,
I had tried them but my problem arises whenever I refresh the window ( i.e., If I Minimize or maximize or restore the window) the last color used for the text is being used which shouldn't happen
Neelesh K J Jain.
|
|
|
|
|
|
in my regular MFC dll project, i create a dialog resource assoicated with a class CTestDlg, and it can normally show in my client application which uses the dll.
But after i added a ActiveX control(IE Control, for example), the dialog can't be displayed and if i call a method of the ActiveX control, the debug assert failed dialog will appear: ASSERT(m_pCtrlSite!=NULL) fails.
so how can i use ActiveX control correctly in DLL?
thanks.
|
|
|
|
|
Make sure you call AfxEnableControlContainer() before using any ActiveX control.
|
|
|
|
|
Thanks
i have already called AfxEnableControlContainer() in the InitIntstance in the dll project, but still get the same problem...
|
|
|
|
|
Make sure also your activeX control is registered (I know this sounds like a stupid suggestion but you will have these kind of results if your ActiveX is not registered).
|
|
|
|
|
Thanks, but i use the IE control and i think it must be registered,
i have got the solution from a forum:
HRESULT hr = OleInitialize(NULL);
if (hr == S_FALSE)
{
OleUninitialize();
}
// Call if using OLE Controls
AfxEnableControlContainer();
// Register all OLE server (factories) as running. This enables the
// OLE libraries to create objects from other applications.
COleObjectFactory::RegisterAll();
Thanks anyway~
|
|
|
|