Andreas Masur, in his FAQ MFC Doc/View: How to obtain a pointer to various objects gives a good compilation on how to get various objects from any part...
Before making the folder, check for its existance. If the folder exists, skip making the folder and write files. The files will be overwritten, if it already exists.
First and third has no difference since file name and extensions has no case difference in DOS / Windows. Second indicates that the include directories are set properly in your project.
...
It is quite probable that you had set the font to some CFont type variable which is defined locally in the function. Make the CFont variable as a member variable of CEditView class.
Maximizing / minimizing window can be done only by using buttons on the toolbar or by toolbar menu. One can check for the corresponding messages for the window concerned and take...
As Cilu said, there is no ready-made C function to compute this. Moreover, week has different conventions in different countries and contexts like starting from Sunday, Monday or Saturday....
I had written that FAQ when I had to match and mix graphic images in two windows. I do not have an idea how it can be done for MDI applications and what could be the need.
Normally, a word is defined as the first group of characters before the first whitespace character. In your problem, you mean it as the first group of alphabets. Am I right?
I have checked with various resolution settings. All the time, monitor aspect ratio was returned as 320:240. Are you sure that your monitor installation settings are correct?
Best way may be to get the screen DC and use GetDeviceCaps to find the pixels (VERTRES, HORZRES) and pixels per inch (LOGPIXELSX, LOGPIXELSY) of X and Y direction. From these data, it is...
If I understood your problem correctly, you have a tree control and a bitmap is associated with each of its child item. When the user selects a child item, corresponding bitmap should be...
I am afraid that there is no ready made solutions for this problem. Simplest I can think of is masking the number with powers of 2, like 1, 2, 4, 8 etc till the highest power of 2 below the...
A: Individual items of a List box are not editable. How good it would have been, if each of the items are editable then and there! Here is a method to incorporate...
A similar problem where images are moves using mouse is dealt in the FAQ How do I drag an image?. Moving things using keyboard is much simpler, where one has to handle WM_KEYUP / WM_KWYDOWN...
It is not possible to edit the subitems of the listbox. You can edit the selected item in a combobox. But with some coding, you can edit the item in a listbox also.
One easy method to avoid the default behaviour of any key combination is to define an acelerator for that key, create a handler for the accelerator key and to leave the handler function...
One method is to store the current window as a bitmap in memory device context and paste it on the window with its coordinates moved left by one pixel.