Type: Posts; User: ovidiucucu
Search took 0.17 seconds.
A spin control also sends WM_VSCROLL to its parent. So, if you want to customize what is displayed in the buddy edit control, first remove UDS_SETBUDDYINT style (in the resource editor, put Set Buddy...
It has no much sense to create a modeless dialog either using a locally defined smart pointer or instantiate a local object. In both cases it will be destroyed when goes out of function scope....
// "faster and intuitive" like anything is so simple that does not make a big deal. :)
Definitely, Notepad++ is far away to be a better option.
...and if you want a faster and more powerful IntelliSense (and not only), you can buy the Visual Assist tool.
And of course, that's also for Visual Studio and not for the poor Notepad++.
Have a look at ActiveX topics in MSDN:
How to register an ActiveX control (.ocx) manually
Viewing and Adding ActiveX Controls to a Dialog Box
Creating an MFC ActiveX Control
"Pure" raw Windows API registry functions are located in Advapi32.dll, according to MSDN documentation.
For keeping MFC application settings under HKEY_CURRENT_USER, you can use CWinApp methods...
February 18th, 2016, 09:00 AM
Another thing that can cause "weird" values seen in Watch window is trying to step into a Release configuration and/or having compiler optimization on.
One additional remark: as long as you are...
January 24th, 2016, 06: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, 12: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, 02: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, 01:37 PM
Probably true, in your dreams.
Don't worry, getting rid of them is not an insurmountable problem! :)
November 21st, 2015, 05: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, 07: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, 05: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, 04:33 AM
Please, let me google that for you! :)
November 20th, 2015, 03: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, 05: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, 03: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, 09: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, 09: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, 06: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, 07:49 PM
November 12th, 2015, 09: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, 03:26 AM
Check Enable native Edit and Continue as well.
October 22nd, 2015, 03: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.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!