|
Anu_Bala wrote: PFile.Read(tTagName,(int)TagNameLength);
Debuf the program, keeping a breakpoint at the above line and Check whether TagNameLength is a valid .
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
hi all,
is it possible to get the cursor position in the edit box like the cursor is after 3 chars from the start or 5 chars from the start like that .
"Men never do evil so completely and cheerfully as when they do it from religious conviction"
-Pascal
|
|
|
|
|
chethu665 wrote: s it possible to get the cursor position in the edit box like the cursor is after 3 chars from the start or 5 chars from the start like that .
Use GetCurPos and CEdit::CharFromPos at tandum!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
|
p=m_edit.GetCaretPos ();
int t=m_edit.CharFromPos (p);
******m_edit is the edit box control and p is a POINT type variable
Uncomment the above 3 lines that are commented to print the value in the message box.
Does this help you?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
-- modified at 8:31 Monday 5th June, 2006
|
|
|
|
|
thanks a lot man !
i worked .
"Men never do evil so completely and cheerfully as when they do it from religious conviction"
-Pascal
|
|
|
|
|
|
NiceNaidu wrote: GetSel and EM_GETSEL
Sorry to trouble you,This Will Retrive the Selected Text not actual Caret Position
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hello, I am sorry, but I am a C++ medium newbie, and I should continue the work of a friend.
It s a kind of trace and there is a ListView with processes. When I click on one of this processes, I get the Error the Assertation failed.
It always happens in the second of these two lines...
ATLASSERT(::IsWindow(m_hWnd));
ATLASSERT((GetStyle() & LVS_SINGLESEL) != 0);
GetStyle points to zero put why ??
Thanks a lot
Edit/Delete Message
|
|
|
|
|
Use the style LVS_SINGLESEL to your listctrl.
- NS -
|
|
|
|
|
I can use GDI32::GdiDrawStream, are you interesting how i can that?
Zqr
|
|
|
|
|
Hi all,
I want my text to be moved rom left to right and come back to left.
How can i do this???
|
|
|
|
|
You want to do it through GDI or have you got the text in some text or label control.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I want my text to be moved from left to right and then to left repeatedly.
I want to do this without using the thread and without GDI. How can i do this?
THanks for ur reply.
|
|
|
|
|
|
sruti_p wrote: I want to do this without using the thread and without GDI. How can i do this? \
You can Move your Text without Thread, but it very difficult to move your text without using GDI, because for writing on Screen you have to use GDI function except if you are making console based application!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Then how can i do this using GDI.
|
|
|
|
|
sruti_p wrote:
Then how can i do this using GDI.
You have to learn simple Screen Painting and Screen Writing for that. which you book are you refering these days
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
sruti_p wrote: I want my text to be moved
Where you want to move the text?
- NS -
|
|
|
|
|
Tried this one for you hehe it works,(If you actually mean a simpler one like this )
Declare Globals:
<br />
CString cs="sruti";<br />
clickCount=0;<br />
onToMoveLeft()<br />
{<br />
cs =" "+cs;<br />
clickCount++;<br />
m_TextOut.SetWindowText(cs);<br />
}<br />
<br />
<br />
onToMoveRight()<br />
{<br />
cs=cs.Right(clickCount);<br />
clickCount--;<br />
m_TextOut.SetWindowText(cs);<br />
}<br />
Now it simulates a movement., Is this you want?
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
Sorry Vunic.
I am not getting it.
I created a splitter window.
On the top pane i want to rotate my text(just like as you in any website).
Anyhow thanks for ur reply.
|
|
|
|
|
sruti_p wrote: want my text to be moved rom left to right and come back to left.
What About
CPaintDC dc(this)
for(x = 100 ;x<300;x+=5)
{
dc.TextOut(x,100,"Alok");
}
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
use above code
but put
Sleep (1000) ;
so application halts for some time giving you
animation result or else you will find
text on its place only.
Leya
|
|
|
|
|
ThatsAlok wrote: CPaintDC dc(this)
Where will you use this code...?
- NS -
|
|
|
|
|
Sleep?? It's better to make use a Timer if at all he needs to automate it.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|