|
Hi guys,
Can any one suggest me how i can write a very simple mouse hook?
suggest me some sample code.
Thanks,
Ram..
|
|
|
|
|
use SetWindowHookEx as follows
SetWindowsHookEx( WH_MOUSE, MouseProc,0,0);
u should write a function write a function(here "MouseProc") with prototype
LRESULT CALLBACK MouseProc( int nCode,
WPARAM wParam,
LPARAM lParam
);
Now u will get all the mouse messages in the function "MouseProc".
The above hook only works inside ur application scope. For u to make the hook globel u should have to write the "MouseProc" in a dll. and pass the instance(obtained from LoadLibrary) as the third parameter to the SetWindowsHookEx function.
nave
|
|
|
|
|
Hi Naveen,
Thanks..
As us said i am looking for a global mouse hook.
are there any rules for the dll like it should be a com outproc server or
is it enough to be ordinaly dll.
thanks and regards,
Ram
|
|
|
|
|
an ordinary dll is enough.
nave
|
|
|
|
|
Hello,
I'm using MS Visual Studio .NET 2003.
how can I get the total line count of the whole project?
Thanks in advance
|
|
|
|
|
|
Thanks. That was a very useful add-in.
|
|
|
|
|
SourceMonitor
"My dog worries about the economy. Alpo is up to 99 cents a can. That's almost seven dollars in dog money" - Wacky humour found in a business magazine
|
|
|
|
|
I wish to get certified in c++ and vc++ are there any exams for the same.
Can anyone pls. guide.
Arun.
|
|
|
|
|
|
Start your search here. Check here, too.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
if use dialog, it is easy,because vc supply a dialog editor, you can design your UI very intuitionistic.
but for a complex UI for example vc6(not complex as that ,just a example)
how to do? Must I calculate the coordinate of control(position ,size etc...) by hard code?
|
|
|
|
|
yes, or use a CFormView on a SDI application.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
hi,
i have a listctrl with owner draw style. Is there any way to increase the row height of list control? I am using the report view in list control.
nave
|
|
|
|
|
using the HDITEM structure and get the header ctrl. you can able to change the height.
Have A Nice Day!
Murali.M
|
|
|
|
|
i don't want to increase the height of the header control( since i am not owner drawing it), But i want to change the all items height to a number. Actually what happened is when i increased the font size, the font desen't fit in the cell and its getting clipped. iwant to avoid that.
Thanks
nave
|
|
|
|
|
In your CListCtrl derived class, overload the MeasureItem handler. Note that we don't call the base class MeasureItem as this will change the item height back to the default.
<br />
void CCustomListCtrl::MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct)<br />
{<br />
if (lpMeasureItemStruct->CtlType == ODT_LISTVIEW)<br />
{<br />
lpMeasureItemStruct->itemHeight = 20;<br />
}<br />
}<br />
<br />
|
|
|
|
|
Hi,
for my list control i use checkbox by LVS_EX_CHECKBOXES. In this checkboxes checkstate having two states of checked and unchecked. it should be possible for tristate. any one help me out. Thanks in Advance.
Have A Nice Day!
Murali.M
|
|
|
|
|
I think you'll need to roll your own.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
i am using CXimage class in my project(MFC).
problem is that bfore calling load function everything ok but when i call load function like this:
CxImage image;
image.Load("structure2.png", CXIMAGE_FORMAT_PNG);
and then compile correctle but when i link this give errors you can see as follows please anybody have idea about these error give me answer ASAP.
Linking...
Creating library Release/Show_Image.lib and object Release/Show_Image.exp
cximage.lib.(ximajpg.obj) : error LNK2001: unresolved external symbol _jpeg_finish_decompress
cximage.lib.(ximajpg.obj) : error LNK2001: unresolved external symbol _jpeg_read_scanlines
cximage.lib.(ximajpg.obj) : error LNK2001: unresolved external symbol _jpeg_start_decompress
cximage.lib.(ximajpg.obj) : error LNK2001: unresolved external symbol _jpeg_calc_output_dimensions
cximage.lib.(ximajpg.obj) : error LNK2001: unresolved external symbol _jpeg_read_header
cximage.lib.(ximajpg.obj) : error LNK2001: unresolved external symbol _jpeg_resync_to_restart
cximage.lib.(ximajpg.obj) : error LNK2001: unresolved external symbol _jpeg_CreateDecompress
....
Show_Image.exe - 82 error(s), 0 warning(s)
Bankey Khandelwal
Software Engineer
|
|
|
|
|
you didn't take in account what i've been saying to you there[^]
actually, yes, you posted a question on the article board, but let people the time to answer.
it's been only 40 minutes that you asked it !
ok i conceed, the author don't maintain its article...
sorry
-- modified at 6:40 Friday 3rd March, 2006
|
|
|
|
|
Did you add the required libraries in your project as specified in the article ?
|
|
|
|
|
|
I need to register IITAPIEventNotification interface in order to proces events. For that I need a callnot.h and callnot.cpp files, but I don't have them. How can I get them?
|
|
|
|
|
Hi
Is it possible to show contacts interface and use it to fetch number and email address or we have to iterate through contacts ourselves and show information in own window and controls.
-----------------------------
In my dream, I was dorwning my §orrow§
But my §orrow§, they learned to §wim
|
|
|
|