Click here to Skip to main content
15,926,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CSocket connections Pin
Mark Salsbery16-Nov-06 7:08
Mark Salsbery16-Nov-06 7:08 
GeneralRe: CSocket connections Pin
jpyp16-Nov-06 7:30
jpyp16-Nov-06 7:30 
QuestionDetect button three press Pin
Johpoke15-Nov-06 8:33
Johpoke15-Nov-06 8:33 
QuestionRe: Detect button three press Pin
David Crow15-Nov-06 10:01
David Crow15-Nov-06 10:01 
AnswerRe: Detect button three press Pin
Johpoke16-Nov-06 5:32
Johpoke16-Nov-06 5:32 
QuestionRe: Detect button three press Pin
David Crow16-Nov-06 5:39
David Crow16-Nov-06 5:39 
GeneralRe: Detect button three press Pin
Mark Salsbery16-Nov-06 5:55
Mark Salsbery16-Nov-06 5:55 
GeneralRe: Detect button three press Pin
Johpoke16-Nov-06 7:09
Johpoke16-Nov-06 7:09 
Yea thats it, i need to use these;

WM_MBUTTONDOWN //The middle mouse button was pressed.
WM_MBUTTONUP //The middle mouse button was released.

i read at http://msdn2.microsoft.com/en-us/library/ms645601.aspx

but i cant find out how to use it.. it needs windows.h, but what else do i need to do? so that this can work:

while(true)
{

while(WM_MBUTTONDOWN == TRUE)
{
//does when it down
}
}

thanks

EDIT: its important that it works globaly, so i can have this minimized and im working in another app and it should still detect it



/Johannes

GeneralRe: Detect button three press Pin
Mark Salsbery16-Nov-06 7:18
Mark Salsbery16-Nov-06 7:18 
GeneralRe: Detect button three press Pin
Johpoke16-Nov-06 7:23
Johpoke16-Nov-06 7:23 
GeneralRe: Detect button three press Pin
Mark Salsbery16-Nov-06 7:33
Mark Salsbery16-Nov-06 7:33 
GeneralRe: Detect button three press Pin
Johpoke16-Nov-06 8:39
Johpoke16-Nov-06 8:39 
AnswerRe: Detect button three press Pin
PJ Arends15-Nov-06 16:20
professionalPJ Arends15-Nov-06 16:20 
AnswerRe: Detect button three press Pin
Hamid_RT15-Nov-06 18:39
Hamid_RT15-Nov-06 18:39 
QuestionClosing popup dialog window. Pin
xkrja15-Nov-06 7:23
xkrja15-Nov-06 7:23 
AnswerRe: Closing popup dialog window. Pin
Mark Salsbery15-Nov-06 11:23
Mark Salsbery15-Nov-06 11:23 
GeneralRe: Closing popup dialog window. Pin
xkrja15-Nov-06 21:31
xkrja15-Nov-06 21:31 
GeneralRe: Closing popup dialog window. Pin
xkrja15-Nov-06 22:16
xkrja15-Nov-06 22:16 
QuestionClient server in VC++ Pin
naish_kewl15-Nov-06 6:39
naish_kewl15-Nov-06 6:39 
AnswerRe: Client server in VC++ Pin
Mark Salsbery15-Nov-06 6:51
Mark Salsbery15-Nov-06 6:51 
GeneralRe: Client server in VC++ Pin
led mike15-Nov-06 8:44
led mike15-Nov-06 8:44 
GeneralRe: Client server in VC++ Pin
Mark Salsbery15-Nov-06 11:25
Mark Salsbery15-Nov-06 11:25 
GeneralRe: Client server in VC++ Pin
naish_kewl8-Dec-06 14:31
naish_kewl8-Dec-06 14:31 
QuestionProblem Using CString Pin
CoffeeAddict1915-Nov-06 6:36
CoffeeAddict1915-Nov-06 6:36 
AnswerRe: Problem Using CString Pin
Mark Salsbery15-Nov-06 6:49
Mark Salsbery15-Nov-06 6:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.