I want to draw concentric circle with hatching inside
the ring structure. I mean to say,
I can draw concentric circle with hatching inside the circle but i want hatching only the area betwe...
Hi there,
Is there anyway I can tokenize a cstring in VC++?
For example, if I have this cstring "356,days,12,months,52,weeks"
Is there any way I could get back
string1 = 356
string2 =...
I've wiped out all memory leaks in my app except two, which are closely related. Here is the output of CMemoryState::DumpAllObjectsSince:
Dumping objects ->
strcore.cpp(118) : {88} normal ...
Ah hello.
I have a problem with a DLL. All I am trying to do is create a DLL that contains a callable method, which when called will display a dialog. That dialog is part of the DLL, not ...
Hi,
I am working on a ClistCtrl object that has a header. How can I change the height of the header as well as the row height of the items in the list?
I tried
Thanx.
I am trying to load an image in OpenCV using the MFC open file dialog:
CString filename;
CFileDialog dlg(TRUE, _T("*.bmp"), NULL, OFN_FILEMUSTEXIST|OFN_PATHMUSTEXIST|OFN_HIDEREADONLY,
_T...
I have a dll project that creates a com interface in visual studio 2008 on WinXP.
The visual studio idl compiler (7.00.0500) creates the interface header file automatically when compiling.
...
Hello,
I have an explorer style MFC application, that displays various CFormView derived classes at different times. I'd like to have a "heading" for each view, that describes what that vie...
I have an application that displays real-time data in a fairly large edit box. When new data is displayed, the screen always flickers which is very annoying. I am currently putting the data to...
Hello...I'm trying to save an image that I captured to the clipboard to a bitmap image. and i've been unable to do so....I can open MS Paint and paste to save my image (Therefore I can confirm...
Hello Expert
//If I have:
CString my_string = "day=monday";
// and then I would like to drop "day="
// to leave the string just like
// "monday"
//
// How cai I do that?
// Ma...
Using VC6, SP5 with ADO and finding that in connecting to Excel the MaxScanRows=0 seems to be ignored [fails in ODBC as well and I assume the same driver is used]. A column containing data wi...
Ah hello.
I have a query regarding drawing a window with rounded edges. Thanks to ZOPPO, I obtained code to change a dialog window to have rounded edges, then fill the none client area a c...
Hi...I have a dialog box with a tree control that has check-boxes in it. What I need to do is, when any of the check-boxes in the tree control is checked, I need to do some processing, and fo...
The whole issue of brushes in MFC seems opaque. I understand the concept of catching WM_CTLCOLOR, or the reflected =WM_CTLCOLOR in a subclass, and then passing back a custom brush you'd like...
I have a MFC MDI application. I wish to change the way it behaves under certain conditions. For instance, I want it to change its behaviour to simulate a Dialog based application while stayi...
Can somebody please give me an example of how a settimer function call works..
It is asking for 4 parameters while I see in msdn that the standard is only 3 parameters..
Im a beginner in...
Hello,
It has become necessary to send a user defined message. I intend to do this using SendMessage().
I can obtain a handle to the CWnd I want to send the message to.
In essence, I...
Dear all,
my application executes successfully when built in Debug mode, however, execution of the Release build generates Access Violation messages e.g.
"Unhandled exception in Fixed Assets.e...
Hi all,
I'm working on an MFC project where one of the requirements is storing an image in an SQL database through an ODBC connection.
After some reading, I decided I would store the ima...
Hi All,
Is there any GDI function in which I could draw a filled gradient shape that also supports a transparency level?
I have some lines I make with MoveToEx()/LineTo()....
Then I w...
As soon as I modify my stdafx.h to define _WIN32_WINNT as 0x0501 (WinXP) instead of 0x0400 (Win2000) I get the following errors when I build.
c:\...\afxwin.h(3292) : error C2061: syntax err...
I need to convert the currently selected item from a combo box into a cstring, int, and float. What's the best way?
For example,
int selectedIndex = myComboBox.GetCurSel();
...
I need to disable the menu items that are not applicable at various places in the application.
The command messages are not being routed through the OnUpdate handlers.
I have looked at a few...
Hi, I am currently developing an application on visual studio 6.0, and i wish to change the MFC icon on my application header. Anyone can help? Thank you.