Search:
Type: Posts; User: Pravin Kumar
Search:
Search took 0.29 seconds.
-
April 25th, 2008, 05:23 AM
Hello,
You can use FindWindow call to get windows of whatever type of relation to the specified window.
For example, the code given below will get all the windows open on desktop.
// Get...
-
April 23rd, 2008, 06:56 AM
Hello,
There are many methods to do this.
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...
-
April 15th, 2008, 11:46 PM
Will this FAQ Integer to string and vice-verca for any base be of any help?
-
April 4th, 2008, 02:21 AM
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.
-
January 7th, 2008, 11:01 PM
Hello,
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.
...
-
January 7th, 2008, 10:50 PM
Hello,
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.
If...
-
December 28th, 2007, 06:39 AM
Hello,
Problem lies not in the code you have shown but somewhere else, I feel. The code modified from what you have shown
do
{
cout << "I am stuck in an infinite loop" << endl;...
-
December 27th, 2007, 12:44 AM
Hello,
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...
-
December 19th, 2007, 04:56 AM
Hello,
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....
-
November 26th, 2007, 11:56 PM
Hello,
This FAQ How do I drag an image should be of some help.
Regards,
Pravin.
-
November 26th, 2007, 06:19 AM
Hello,
Get the bitmap dimension using BITMAP object. For that add the following lines in place of your line containing BitBlt call.
BITMAP BM;
bmpLogo.GetBitmap(&BM);
pDC->BitBlt(0, 0,...
-
November 21st, 2007, 02:14 AM
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.
Regards,
Pravin.
-
October 30th, 2007, 06:48 AM
Hello,
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?
It is clear...
-
October 30th, 2007, 02:19 AM
Hello,
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?
I must...
-
October 26th, 2007, 05:49 AM
Hello,
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...
-
October 26th, 2007, 04:46 AM
Wow! Really great. Only for powers of 2, that number and its predicissor will AND to give 0. By this method, any calculation in loop is avoided.
Hats off to laitinen.
Regards,
Pravin.
-
October 26th, 2007, 02:12 AM
Hello,
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...
-
October 26th, 2007, 01:09 AM
Hello,
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...
-
October 16th, 2007, 06:54 AM
Q: How do I edit a list box item?
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...
-
October 4th, 2007, 12:13 AM
Hello,
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...
-
October 4th, 2007, 12:04 AM
Hello,
I hope that this FAQ Integer to string and vice-verca for any base will be of use.
Regards,
Pravin.
-
October 3rd, 2007, 06:16 AM
Hello,
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.
Since clicking...
-
August 2nd, 2007, 07:41 PM
Hello,
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...
-
Hello,
You may shift the window contents to one pixel left with the code mentioned below.
CRect Rect;
GetClientRect(Rect);
CDC MemDC;
CClientDC DC(this);
if (MemDC.CreateCompatibleDC(&DC))
-
Hello,
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.
Regards,
Pravin.
|
Click Here to Expand Forum to Full Width
|