15,887,683 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by R. S. Verma (Top 32 by date)
R. S. Verma
25-Apr-16 9:25am
View
Thanks jochen.
R. S. Verma
25-Apr-16 9:20am
View
Hey OriginalGriff,
Lots of thanks for clerifying my doubts.
R. S. Verma
14-Aug-13 4:48am
View
A very great ful thanks but I have doublt about this solution as if clients have his own setting in his Normal template then in that case might be problem may occure.
but ur suggestion really helpfull
thanks a lot...
R. S. Verma
10-Dec-12 7:17am
View
Thanks a lot jochen. Its really helpful information you provided. :)
R. S. Verma
10-Dec-12 7:15am
View
hey thanks Mohibur Rashid,
You are to the point of solution. Thanks a lot :)
R. S. Verma
24-May-12 9:10am
View
Thanks but I crossed check but its not working. so m still looking for any comments..
Regards..
R. S. Verma
13-Apr-12 6:18am
View
Ohh I got ur point. And thanks for reminding me.
R. S. Verma
24-Nov-11 5:08am
View
Hi karstenk
thanks to ur reply. I have tried according to ur suggestion but it is not working yet. Actually Am getting english text like "Click here to start" from start button and is is getting converted into unicode and again setting into same tooltip window.
It is converted properly into unicode but not able to set the unicode text in same tooltip window.
am using
::SendMessage(HWND,WM_GETTEXT,(WPARAM)iToolTipLen+1,(LPARAM)strToolTipText );//for getting english data from tooltip
and after converted this data into unicode trying to set using
::SendMessageW(hWndToolTip,WM_SETTEXT,NULL,(LPARAM)ToolTip_Unicode);
::SendMessage(W) -> W is for unicode
.
.
.
But it is not process as i need
WM_SETTEXT is successfully sending message and returning true
..
..
..
Can u plz tell me whats going wrong .... an not understanding what I should do ..???
Thanks ):(
R. S. Verma
16-Nov-11 23:33pm
View
thanks for ur great responce prerak patel.... :)
R. S. Verma
4-Nov-11 3:00am
View
thanks for replying
but am using single one that is C:\windows\system32\regsvr32.exe for registering both the version 32bit ocx and 64bit ocx version. and this is work only after that. I want to know why these two version are required, why not single one 64bit only.
that was my question....
R. S. Verma
12-Oct-11 7:39am
View
Hey venkatmakam
Thanks a lot.
Its solved my problem. :)
R. S. Verma
5-Sep-11 1:55am
View
Hi ,Could you explain how to delete existing tooltip and reset it again in same position??
Thakns..
R. S. Verma
30-Aug-11 2:55am
View
Hi Albert
Thanks for suggestion but I want to explain my objective for ur clerification, actually I want to access tooltips from any where like from start button, from desktop's icons or folder view.
This is done by my aproch..
Now i need to set that tooltip text again according to my requirement what i want.
thats why I am using this kind of aproach , and asking for solution.
thanks for giving suggestion...
and welcome further suggestion from you guyes...
R. S. Verma
29-Aug-11 7:20am
View
Thanks Karstenk
R. S. Verma
29-Aug-11 7:07am
View
Hi Karstenk
Thanks For Replying
but its not working as this is not able to Set text inside tooltip window
plz explain another way if possible to solve this issue.
Thanks again ...
R. S. Verma
25-Aug-11 2:33am
View
Thanks Rechard,
Its really help full...
R. S. Verma
23-Aug-11 6:54am
View
Oh parden me sir if u got wrong anything in my statement ... but i didnt mean anything which have attitude..
well thanks for suggestion...
R. S. Verma
23-Aug-11 1:18am
View
Deleted
Thanks, But My Requirement is different...
R. S. Verma
23-Aug-11 1:13am
View
Hi Sergey
Great Thanks For the reply
But I have this kind of solution already
My requirement is different.
"I have to access tooltip Text From Start Button at bottom-left and its Start menu contents, not to from application itself".
For Example ToolTip From Close Button,Maximize, Minimize and from any tool bar of any application, Desktop icon's tooltip Text I Need.
I hope You got my Question
Thnks
R. S. Verma
29-Jul-11 5:16am
View
Thanks for replying
Appreciating but i need something else
Actually i want to ask that if my mouse hooked notepad application and then i need to extract its file name information and its file data if it is exist.
and also application menu item name n all dat...
my question was regarding this...
am able to find any winodw handle using hook ' WM_MOUSE'
I hope u understand now..
thanks...
R. S. Verma
28-Jul-11 1:03am
View
Hi Experts,
Thanks for replying ...
Actually I already used GetWindowText, and I mentioned above it in my question, now I need to extract other information and i need to display it on dialog's textboxes or on the labels....
I need Help Regarding this.
I have done Mouse hooking and keyboard hooking and by using MOUSEHOOKSTRUCT Structure I am able to access its current window handle. All thing are happening using MFC Code itself.
But Problem now is dat am not able to Go Ahead or beyond that.
Plz Help me to know more about it.
Thanks ...
R. S. Verma
21-Jul-11 8:33am
View
Hi
Can you provide any sample window application that how to use this function and API's ....
M Totally new here ...
thanks
R. S. Verma
21-Jul-11 8:31am
View
Deleted
Hi
Can you provide any sample application that how to use this function and tutorial...
thanks
R. S. Verma
20-Jul-11 7:37am
View
Thanks Richard Mac....:)
R. S. Verma
3-Jun-11 1:45am
View
ya sure i would like to share the code...
[code]
Private Sub rtbDoc_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles rtbDoc.KeyPress
'Author : Ravi
If LineCharCounter >= 45 And e.KeyChar <> Chr(8) Then
LastSpacePos = InStrRev(rtbDoc.Text, " ", -1) ' find last space position
LastTabPos = InStrRev(rtbDoc.Text, Chr(9), -1) ' find last tab position
rtbDoc.WordWrap = True
If LastSpacePos > LastTabPos Then
rtbDoc.Text = rtbDoc.Text.Insert(LastSpacePos, Chr(13) & Chr(10))
Else
rtbDoc.Text = rtbDoc.Text.Insert(LastTabPos, Chr(13) & Chr(10))
End If
System.Windows.Forms.SendKeys.Send("{PGDN}")
'getting last char when this condition gets satisfied
lastChar = e.KeyChar.ToString()
totLen = rtbDoc.Text.Length
rtbDoc.Text = rtbDoc.Text.Insert(totLen, lastChar.ToString())
chkGarbage = True ' this line use less
LineCounter = LineCounter + 1 ' count lines manually
LineCharCounter = totLen - LastSpacePos ' getting exact character at each new line
ElseIf e.KeyChar = Chr(13) Then ' return key handling
LineCharCounter = 0
LineCounter = LineCounter + 1
ElseIf e.KeyChar = Chr(8) Then ' backspace handling
If LineCharCounter > 0 And LineCounter > 0 Then
LineCharCounter = LineCharCounter - 1
ElseIf LineCounter > 1 Then
LineCharCounter = 45
LineCounter = LineCounter - 1
End If
' Handling Backspace here
'MessageBox.Show("Current Cursur :" & caretPosition & " Next Returnkey Pos:" & BackSpace(caretPosition), "String Caret Position")
ElseIf e.KeyChar = Chr(9) Then ' Tab key- Tab key is not passed to controls by default as it is needed to provide navigation in a form.
LineCharCounter = LineCharCounter + 8 ' Mark AcceptTab key as True in property window
Else
LineCharCounter = LineCharCounter + 1
End If
End Sub
[Code]
Private Sub rtbDoc_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles rtbDoc.KeyUp
' Author : Ravi
If chkGarbage = True Then
rtbDoc.Text = rtbDoc.Text.Remove(0, 1)
chkGarbage = False
'System.Windows.Forms.SendKeys.Send("{PGDN}")' no use now
'These two line always keep caret at the End of File
rtbDoc.SelectionStart = Len(rtbDoc.Text)
rtbDoc.SelectionLength = 0
End If
End Sub
[End Code]
Now here i terminate the line on keypress and when i go back from previous line it is not maintain 45 character limit...
thnkx..
R. S. Verma
2-Jun-11 8:10am
View
In Form, am developing editor in vb.net using forms
and condition is when i type in rich text box, it should be terminited every after 45 character.
this part is done , now my requirement is when i remove/ add character in between above line then it should also be get terminated/ add next line in the current line, means not any line should go beyond 45 character length.
thanks...
R. S. Verma
2-Jun-11 7:11am
View
Deleted
I
R. S. Verma
5-May-11 7:14am
View
Hello experts
i am still looking for solution dat how can i change that value comming in wparam and lparam so dat i could change my character before reaching to its destination window in case of keyboard hooking.
I Used this code given here for update the value of wparam, plz update me what should i do extra to solve my problem
[CODE]
LRESULT __declspec(dllexport)__stdcall CALLBACK KeyboardProc(int nCode,WPARAM wParam,
LPARAM lParam)
{
char ch;
if (((DWORD)lParam & 0x40000000) &&(HC_ACTION==nCode))
{
if ((wParam==VK_SPACE)||(wParam==VK_RETURN)||(wParam>=0x2f ) &&(wParam<=0x100))
{
f1=fopen("c:\\report.txt","a+");
if (wParam==VK_RETURN)
{
ch='\n';
fwrite(&ch,1,1,f1);
}
else
{
BYTE ks[256];
GetKeyboardState(ks);
WORD w;
int ascii;
UINT scan=0;
ascii=ToAscii(wParam,scan,ks,&w,0);
if(ascii==1)
{
if(!toupper(char(w))
{
ch=toupper(char(w));
}
else ch=char(w);
}
wParam=ch;// here i want to update wParam so dat
//i get character on destination
//window in upper case if it is in
// lower case
fwrite(&ch,1,1,f1);
}
fclose(f1);
}
}
LRESULT RetVal = CallNextHookEx( hkb, nCode, wParam, lParam );
return RetVal;
}
any help great thaks
....
R. S. Verma
4-May-11 2:25am
View
gr8 thanks for ur great suggestion...
R. S. Verma
4-May-11 0:51am
View
Do not re-post????.... Is der any mistake in posting... please let me know so dat i could improve myself
thanks
R. S. Verma
30-Apr-11 4:58am
View
great article u provide...
i study dem and understand better
but still not comfortable to use dem...
kindly provide some tutorial step wise....
thanks in advance...
R. S. Verma
15-Apr-11 10:49am
View
Deleted
Hey thankx Saavi
Its working absolutly fine....
:)
Show More