Type: Posts; User: ovidiucucu
Search took 0.20 seconds.
January 24th, 2016, 07:42 AM
As Victor already said, if you have a form view (which is based on a dialog resource), you can easily put a slider as well as any other type of controls in its client area.
Otherwise, put it in a...
January 16th, 2016, 01:44 PM
To use a global variable in more than one translation unit, declare it in a header using extern specifier...
extern sTensor g_tensor; // declaration
...and define it...
December 15th, 2015, 03:03 PM
Yes, probably The Big Blue has a special call center that still offers support for electric tabulating machines manufactured between the late XIX and early XX century years. :)
December 15th, 2015, 02:37 PM
Probably true, in your dreams.
Don't worry, getting rid of them is not an insurmountable problem! :)
November 21st, 2015, 06:06 AM
DO NOT TRUST in what you see when step into a RELEASE build!
Because of code optimization, wrong values may be shown.
If you want to trace code also in RELEASE, use a logging system (e.g. write...
November 20th, 2015, 08:44 AM
You want to add a .Net Framework Component in an MFC Application project, which is NOT possible.
To show a file open dialog in MFC, just use in your code a CFileDialog object.
November 20th, 2015, 06:13 AM
One aside note
Probably you tried to use IMG tags for showing image files from your local computer. That's not working, for sure.
Instead, when editing your post, use Insert Image button and...
November 20th, 2015, 05:33 AM
Please, let me google that for you! :)
November 20th, 2015, 04:51 AM
Quoted from https://en.wikipedia.org/wiki/CMake#Microsoft_Visual_Studio
IMO, if develop using Visual Studio, can get rid of third party stuff like CMake.
November 18th, 2015, 06:06 AM
Because pWnd parameter of CMenu::TrackPopupMenu identifies the window which receives the commands from that menu and you've set it to something else.
Again, just handle WM_CONTEXTMENU in the...
November 18th, 2015, 04:59 AM
You've set the dialog's parent for receiving menu's commands.
Anyway, for showing a floating context menu, instead of handling WM_RBUTTONDOWN or NM_RCLICK child notify, a better, easier and the...
November 15th, 2015, 10:02 AM
If search for "RichEdit" and not for "richtextbox", for sure you'll find more C++ articles related to this subject.
AFAIK, many of them are not 100% reliable but you can try.
November 14th, 2015, 10:08 AM
What? No offense but this is a statement good for a non-programmer or for a programmer smoking a kind of bad grass. :)
November 14th, 2015, 07:11 AM
"Third party"? Prefer saying MFC and ATL are C++ wrapper libraries over native Windows API.
Probably, in a parallel world and a future life, we'll have a standard C++ supporting all native OS's...
November 12th, 2015, 08:49 PM
November 12th, 2015, 10:54 AM
That's what could happen when mixing STL and WinAPI.
Somewhere in WinDef.h header file, there is the following macro definition
#define max(a,b) (((a) > (b)) ? (a) : (b))
October 23rd, 2015, 04:26 AM
Check Enable native Edit and Continue as well.
October 22nd, 2015, 04:27 AM
Generally true, but in this case the zero index is used for preserving the filter pattern chosen by the user.
See nFilterIndex and lpstrCustomFilter members of OPENFILENAME structure.
October 15th, 2015, 10:35 AM
You have pointed to a quite old article. Meanwhile, MFC implemented its own CMemDC Class, although it was designed for internal use.
Now, you have three choices:
use the class from MFC adapting...
October 9th, 2015, 04:00 PM
MFC has already its own classes for easy use of Direct2D and related.
See these articles: http://codexpert.ro/blog/tag/direct2d/
October 8th, 2015, 07:13 AM
Generally, if using pointers, calling CGdiObject::GetSafeHandle is safer than directly accessing the m_hObject member.
In our case, if pBitmap is NULL, pBitmap->GetSafeHandle() will return NULL...
October 3rd, 2015, 08:17 AM
[ additional note ]
CImage is a wonderful ATL/MFC class which can help you to save lines, time and improve the code readability and maintainability, by making not obviously necessary to write...
October 3rd, 2015, 06:33 AM
Once you have the (composed) bitmap, there's no sweat to attach it to a CImage object, then save it in a file.
HRESULT CFoo::SaveCBitmapToFile(CBitmap* pBitmap, LPCTSTR szFilePath)...
September 1st, 2015, 04:56 AM
Is any good reason to stay stuck in older versions as long as anyway, RichEdit 4.1 is shipped with Windows XP SP1 and newer?
See RichEdit versions.
One alternative solution is to make your own custom or ActiveX control and draw in it everything your muscles want.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!