Автор: Alexandor1984 (21.02.2007 в 19:32)
Все решилось банально. Достачно было подключить "Windows.h" и использовать GetKeyState.
Вот он, слушатель мыши в одну строку:
********************************
rightmousebtn.h
********************************
#pragma once
#ifndef __AFXWIN_H__
#error "include 'stdafx.h' before including this file for PCH"
#endif
#include "resource.h"
#include "Winuser.h"
__declspec(dllexport) int AddValues();
********************************
rightmousebtn.cpp
********************************
#include "stdafx.h"
#include "rightmousebtn.h"
#include "Windows.h"
int AddValues()
{
int right_mouse_btn_flag = GetKeyState(MK_RBUTTON);
return right_mouse_btn_flag;
}