|
The docs you quoted state that's not the way it works.
You'll have to write your own edit control.
It doesn't make much sense since as soon as you type
all the selected text is going to disappear anyway.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
M Kishore wrote: In the description of EM_SETSEL Message, I found the below mentioned point.
"The control displays a flashing caret at the end position regardless of the relative values of start and end."
Could anyone help me in this regard.
So what do you want us to do about that?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
So, Could anyone help me how to select the whole text and the caret to be at the starting position of the text and the text to be scrolled to the beginning in the single line edit box.
|
|
|
|
|
What happens if you use SetSel(num, 0) where num is the number of characters in the edit control?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I tried in that way also. Even then the whole text is selected and the caret is at the end position.
Reason might be
"Edit controls: The control displays a flashing caret at the end position regardless of the relative values of start and end."
Refer: "ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.WIN32COM.v10.en/shellcc/platform/commctls/editcontrols/editcontrolreference/editcontrolmessages/em_setsel.htm"
So only I asked in my previous message about other procedure without using that message.
Please sugget any other method if you come across.
|
|
|
|
|
Hi All
I want to run my application in background.I set application in startup folder through regeedit.But i want to set visible false for user.I am uesing dailog application.How can i do plz help me?
Thanks in advance
|
|
|
|
|
|
Do you want to hide it of Task Manager?
|
|
|
|
|
Yes i want to hide exe name from task manager.
modified on Monday, October 13, 2008 6:35 AM
|
|
|
|
|
|
how do i display menu bar on a dialog box?
|
|
|
|
|
Create a menu in your resource editor and then add it to your dialog (in "Dialog Properties"). That's how it works in VC6. Pretty sure it's similar in other versions.
|
|
|
|
|
|
Hello everyone,
1.
I am developing for both x86 and x64. I stop mouse on size_t in the code, and "typedef unsigned int size_t" is always displayed. I think it is not correct for x64. Since x64 size_t is 64-bit and unsigned int on x64 is 32-bit. So, the first question is how to let mouse display the correct typedef?
2.
But when I select size_t and click go to Definition/Declaration, but always failed. Where are they defined?
thanks in advance,
George
|
|
|
|
|
George_George wrote:
I am developing for both x86 and x64. I stop mouse on size_t in the code, and "typedef unsigned int size_t" is always displayed. I think it is not correct for x64. Since x64 size_t is 64-bit and unsigned int on x64 is 32-bit. So, the first question is how to let mouse display the correct typedef?
I would not bet my money on what intellisense tell me.
|
|
|
|
|
Maximilien wrote: I would not bet my money on what intellisense tell me.
Agreed. That would not be an intellibet.
led mike
|
|
|
|
|
But how do you find out in which header file it is defined, led mike? I found a couple of definitions.
regards,
George
|
|
|
|
|
George_George wrote: But how do you find out in which header file it is defined, led mike? I found a couple of definitions.
George_George wrote: The go to definition or go to declaration in VC never works
Maybe it's not defined in code. Maybe it's intrinsic to the compiler. Why does it matter?
led mike
|
|
|
|
|
Thanks led mike,
Currently there is no issues. But I think for such a commonly used data type, if we are not sure where it is defined, we will have risk. Any comments or ideas about how to find out where it is defined?
regards,
George
|
|
|
|
|
George_George wrote: But I think for such a commonly used data type, if we are not sure where it is defined, we will have risk.
Well George this is another example of you digging into something that is not necessary while still not even understanding fundamental things like how constructors and object construction works. If the entire community of VC developers works without the knowledge of where size_t is defined, why is it immediately important to know, just because you say so?
What risk exists by not knowing where it's defined? You can still know what it is defined as by doing cout << sizeof(size_t) George_George wrote: Any comments or ideas about how to find out where it is defined?
Yes and I already made those comments.
led mike
|
|
|
|
|
Thanks led mike,
I do not know why finding where size_t is defined is too hard.
Today, I have made more experiment, which is, enable the "Generate Preprocessed Files" of VC, but the output is quite surprising. Any ideas?
#line 1 "d:\\visual studio 2008\\projects\\testsizet1\\testsizet1\\main.cpp"
#include <wnidows.h>
int main()
{
size_t x;
return 0;
}
regards,
George
|
|
|
|
|
George_George wrote: I do not know why finding where size_t is defined is too hard.
Maybe because you completely ignored what I previously posted.
led mike wrote: Maybe it's not defined in code. Maybe it's intrinsic to the compiler.
led mike
|
|
|
|
|
Sorry led mike,
Could you clarify which of your related statements resolves my issue of generating only one line of mian.i file please? I read your reply again but not finding anything related to this question.
regards,
George
|
|
|
|
|
You appear to be changing the question. In the previous post it was:
George_George wrote: I do not know why finding where size_t is defined is too hard.
Now it is:
George_George wrote: my issue of generating only one line of mian.i file
I don't know what that means and I don't care. I believe you are being deliberately obtuse and have exhausted my patience. Good day.
led mike
|
|
|
|
|
Hi led mike,
Your final decision is, you do not know whether size_t is a built-in type or not?
regards,
George
|
|
|
|