|
prithaa wrote: SendMessage(EM_CHARFROMPOS,WPARAM ,LPARAM (5));
As per MSDN, the LPARAM is a pointer to POINTL structure. so you should modify the code as..
POINTL pt;
pt.x = 5;
pt.y= 5;
SendMessage(EM_CHARFROMPOS,0,LPARAM(&pt));
modified on Wednesday, April 23, 2008 2:57 AM
|
|
|
|
|
Hello,
WIll this work for CRichEditCtrl
Pritha
|
|
|
|
|
prithaa wrote: WIll this work for CRichEditCtrl
Is it very hard to try in your application???
MSDN:
Parameters
wParam
This parameter is not used.
lParam
The coordinates of a point in the control's client area.
The coordinates are in screen units and are relative to the upper-left
corner of the control's client area.
Rich edit controls: A pointer to a POINTL structure that contains the
horizontal and vertical coordinates.
Edit controls: The low-order word contains the horizontal coordinate.
The high-order word contains the vertical coordinate.
|
|
|
|
|
prithaa wrote: SendMessage(EM_CHARFROMPOS,WPARAM ,LPARAM (5));
Why are you not calling the base class implementation instead?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks Naveen
It worked.
Thanks for everybody's help
|
|
|
|
|
Hi all,
i want to make a extractor, but actually not getting the concept how to make it......
i have seen various codes on codeproject and code guru, but i don't want code i want concept of extractor.....
can anybody help me in this....
Thanks in advance...
|
|
|
|
|
An extractor ? What do you mean with that ? Care to explain a bit the context ?
|
|
|
|
|
Actually i want to make a single .exe of various file (like .exe,.txt,.dll)it can be using any extension, and when i click on that exe it should extract all the files back to a location....
|
|
|
|
|
Ok, you mean an installer ? Will it be used to install your program ? If yes, then I suggest you take a look at InnoSetup[^]. It will let you do those kind of things and even more.
|
|
|
|
|
i have seen innosetup but i want a concept based on coding(Practically how an i implement it). I have seen a project that have used resource.....
|
|
|
|
|
|
Hi all,
I was wondering if anyone could help me with analyzing/reading other process’ memory space. I need to view the memory space in real-time, while running the application, to be able to segregate the variables storing the application state and various strings that are displayed in UI. Then, I need to be able to locate those variables automatically and read them in real-time, whenever application is running.
For example, take Windows Media Player. I would want to be able to get variables such as: string for song currently playing, state of the player (play/pause, volume, etc.), whenever the application is running in memory. Or, as another example, a list of users currently online on MSN and their status.
Are there any applications that would ease my task (e.g. to analyze memory space first)? What programming language could this be written in? (I assume it would be C/C++, and maybe C#?) How would I go about doing all this?
Thank you very much in advance.
|
|
|
|
|
barboris wrote: Then, I need to be able to locate those variables...
Variables are not part of the EXE or DLL.
barboris wrote: For example, take Windows Media Player. I would want to be able to get variables such as: string for song currently playing, state of the player (play/pause, volume, etc.), whenever the application is running in memory.
Check to see if WMP has a COM interface.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
Is there a way to get the full path from an open HKEY;
How can I get from HKEY hKey
to HKEY_LOCAL_MACHINE\SOFTWARE\.........?
Thanks.
|
|
|
|
|
ftsOne wrote: Is there a way to get the full path
Yes, we can..
REGOPENKEY - To open the Registry
REGQUERYVALE - belongs to ur queried value
REGCLOSEKEY - closing the registry...
this kind of API's are there.
Born to win...!
|
|
|
|
|
Hi and thanks for the quick reply.
I know of those API's and googled, yahooed, and whatever else I could think of, just in case I've missed anything.
What I've found is that hKey will give me something like Microsoft\MediaPlayer but not HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer.
What I need is to determine if hKey is actually pointing to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft and not to HKEY_CURRENT_USER\SOFTWARE\Microsoft.
Any insight would be greatly appreciated.
|
|
|
|
|
ftsOne wrote: What I've found is that hKey will give me something like Microsoft\MediaPlayer but not HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer.
No, it is giving full path only...
Hope u gone through this page..If not...
http://msdn2.microsoft.com/en-us/library/ms724909(VS.85).aspx[^]
have a look...
we will get full path ya
Born to win...!
|
|
|
|
|
Hi again,
Yeah, I went through that page. I also scrutinized everything that started with Reg...
That API only gives you the value associated with the open key. It does not give you the full path to the key.
I can enumerate the values and subkeys. What I need is the path to the open key.
Thanks again.
|
|
|
|
|
Can u send me ur code..i will check it ..and i will tell U
Born to win...!
|
|
|
|
|
void SearchHive(HKEY hive)
{
HKEY hKey;
DWORD dwIndex = 0;
LONG lRet;
DWORD cbName = IS_KEY_LEN;
TCHAR szSubKeyName[IS_KEY_LEN];
if (::RegOpenKeyEx(hive, NULL, 0, KEY_READ, &hKey) != ERROR_SUCCESS || g_bCancelSearch)
goto Stop;
while (((lRet = ::RegEnumKeyEx(hKey, dwIndex, szSubKeyName, &cbName, NULL,NULL, NULL, NULL)) != ERROR_NO_MORE_ITEMS) && g_bCancelSearch != true)
{
// Do we have a key to open?
if (lRet == ERROR_SUCCESS)
{
/**********************************************
Do Something with the key
hKey is an open HKEY handle returned by ::RegOpenKeyEx
szSubKeyName is the key in string format returned by ::RegEnumKeyEx at dwIndex
usually something like 'SOFTWARE' or 'HARDWARE'
what is the human readable format for hKey
for example:
convertHKEYtoString(hKey) would return something like
HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\MyApp\MySettings
/*********************************************/
}
dwIndex++;
cbName = IS_KEY_LEN;
}
Stop:
//No more subkeys
::RegCloseKey(hKey);
}
|
|
|
|
|
|
Hi,
I have found several registry classes here at code project actually.
All of them assume you have the path (ie: HKEY_LOCAL_MACHINE\SOFTWARE\MyApp) to open the hKey.
I have the an open hKey and want the path in a string format to display it on a control.
'0X80000000' means nothing to the user, where as 'HKEY_LOCAL_MACHINE\SOFTWARE\MyApp' would be helpfull.
I can walk the key from a predefined key like HKLM forward, what I need is to walk backwards back to HKLM.
|
|
|
|
|
I guess the bigger question is why do you need this information? Perhaps if you explained, we might could offer a different approach.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
If you want to drag,drop of your program with Internet Explorer I think I saw on the codeproject an example of it.
|
|
|
|