|
In Win32 Application I created dyanmicaly two edit boxes with CreateWindowEx(..) with WS_TABSTOP style. I set the focus to first Edit control in the code.
When I run the application two edit boxes are appearing and the focus is set to 1st edit box. When I pressed the tab key the focus not changing to 2nd edit.
Can I get any help, and the reason? Thanks in advance.
Murali.
|
|
|
|
|
Change the z-order of the created edit box. you can use SetWindowPos() for this.
There is no spoon.
mail
|
|
|
|
|
Can you explaine how z-order helps in solving my problem? Can you tell me the signifance of z-order here.
|
|
|
|
|
pEdit2->SetWindowPos(pEdit1,0, 0, 0, 0,
SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE);
Hope this helps.
There is no spoon.
mail
|
|
|
|
|
Moving focus between controls in a dialog is handled by the Windows dialog manager. If the window containing the controls is not a dialog you will have to handle changing focus yourself in your window procedure. (Assuming this is not an MFC app.)
You would have to process WM_CHAR messages and do the appropriate SetFocus when you get TAB. You would also have to check for the Shift key if you had more than two controls.
The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).
|
|
|
|
|
i have written complete code for this program and it is running almost fine it is just not giving proper display in the last screen in the output.
please help me just reply me so that i will send you the source code files and if you want i can connect through netmeeting to show what is going wrong on the output screen. I am also available on msn as youngashish@hotmail.com
and at yahoo as young_ashish@yahoo.com
please please help me
just reply me so that i can send you the source code files.
|
|
|
|
|
Ok send me the code to azghar_hai@hotmail.com
If you have faith in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
wot does this program do?
There is no spoon.
mail
|
|
|
|
|
can u come online at MSN Messenger so that it will be easy for me to explain and if possible it would be much better if we come on netmeeting so that i can show you what exactly the output should nad where it might be screwing up.
I am on MSN as : youngashish@hotmail.com
please do reply.
|
|
|
|
|
I want to send data to device.
What I use function?
|
|
|
|
|
|
|
Hi All
Can anyone say how can i convert a fisheye image to noraml image ? any algorithams ?..
If anyone knows anything about this , pls give me that information.
Thanking U
Krishnan
If u can Dream... U can do it
|
|
|
|
|
Hi there,
I am learning C and I am stumped by this question about for loops. I know how to make a loop but not sure how to get the 1*1*1 etc into total.
Given int variables k and total that have already been declared , use a for loop to compute the sum of the squares of the first 50 whole numbers, and store this value in total . Thus your code should put 1*1 + 2*2 + 3*3 +... + 49*49 + 50*50 into total . Use no variables other than k and total .
Thanks in advance,
Jennifer
|
|
|
|
|
How about this? [edit]Got the wrong number in the for statement [/edit]
total = 0;
for(k=0; k<50; k++)
{
total = total + (k * k);
}
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Thanks so much. I just had the total equation wrong!! YEAH!! Thanks so much.
|
|
|
|
|
Hi,
k=1;
total=0;
while(k<=50)
{
total=total+(k*K);
K=k+1;
}
Regards.
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
Given an int variable k that has already been declared , use a while loop to print a single line consisting of 97 asterisks. Use no variables other than k .
or this....
Given an int variable n that has already been declared and initialized to a positive value , and another int variable j that has already been declared , use a while loop to print a single line consisting of n asterisks. Thus if n contains 5, five asterisks will be printed. Use no variables other than n and j .
Any ideas. I have lots of questions like this. I just need help with one of them so I can work with the rest!
Thanks in advance.
|
|
|
|
|
Hi
int k=0;
while(k<97)
{
printf("%c",'*');
k=K+1;
}
Regards
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
Hi, I've used Visual C++ for a couple of years, but I'm just learning MFC for C++ .Net right now.
Anyway, I'd like to be able to click a button that gives me a new dialog box (or just hides everything on the current one and gives me a box that looks new). Say I click on a 'stats' button. I'd then like to select from a 'stats' menu which kind of stats I would like to display, etc.
What would be the easiest or best way to accomplish what I'm trying to do in a MFC app?
Thanks,
Mark
|
|
|
|
|
CMyDialog::OnClickBtn()
{
//replace CDialog with your own Dialog class.
CDialog dlg;
dlg.DoModal();
}
There is no spoon.
mail
|
|
|
|
|
Thanks.
|
|
|
|
|
I want to be able to take an unsigned int, and use the 32 bits that make up that int for some further calculations.
Is there a way of doing this, via some library, or some built-in function???
|
|
|
|
|
http://www.codeproject.com/cpp/bitbashing.asp[^]
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it!
|
|
|
|
|
Hi,
In the application I've created, I need to do the following:
1. Need the application to ask for the user to save the changes made when he exits without saving. I tried:
GetDocument()->SetModifiedFlag(true);
With this the string displayed in the message box becomes:
"Save changes to untitled?" I need to make this "Do you wish to save changes made to configuration?"
2. Change the application name that appears in all the message boxes (in the title bar). How do I do that? Currently all of them show "xyzProject" and I need "XYZ Application"
Thanks in advance!
|
|
|
|