Click here to Skip to main content
15,904,638 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: combobox event in propertypage Pin
Jose Lamas Rios18-Jul-05 2:30
Jose Lamas Rios18-Jul-05 2:30 
GeneralRe: combobox event in propertypage Pin
stevy8218-Jul-05 2:43
stevy8218-Jul-05 2:43 
GeneralRe: combobox event in propertypage Pin
Jose Lamas Rios18-Jul-05 4:57
Jose Lamas Rios18-Jul-05 4:57 
GeneralRe: combobox event in propertypage Pin
stevy8218-Jul-05 5:05
stevy8218-Jul-05 5:05 
GeneralRe: combobox event in propertypage Pin
Jose Lamas Rios18-Jul-05 5:21
Jose Lamas Rios18-Jul-05 5:21 
GeneralRe: combobox event in propertypage Pin
stevy8218-Jul-05 6:26
stevy8218-Jul-05 6:26 
GeneralRe: combobox event in propertypage Pin
Jose Lamas Rios18-Jul-05 6:51
Jose Lamas Rios18-Jul-05 6:51 
QuestionHow to get mouse events in console application Pin
Bin2Hex15-Jul-05 3:34
Bin2Hex15-Jul-05 3:34 
I'm using VC6 to build a console app. In it I need to know when the user clicked a mouse button (don't matter where, nor what button was pressed). I followed the MSDN indications and did the following to enable my app to receive mouse input notifications:

HANDLE hStdIn = GetStdHandle(STD_INPUT_HANDLE);

SetConsoleMode(hStdIn, ENABLE_MOUSE_INPUT)


Then I check for mouse input this way:

BOOL bOk;
INPUT_RECORD impRec;
DWORD dwReaded;

bOk = ReadConsoleInput(hStdIn, &impRec, 1, &dwReaded);

if (!bOk || dwReaded == 0)
  // get out

if (impRec.EventType == MOUSE_EVENT_RECORD)
  ProcessMouse(impRec.Event.MouseEvent);


The problem is that no mouse notification arrives. In the real code I check also for keyboard events and they are notified ok, but no mouse events.

Can anyone help me on this one?

TIA
GeneralSerial number Validation Pin
ovia15-Jul-05 2:23
ovia15-Jul-05 2:23 
GeneralRe: Serial number Validation Pin
Bob Stanneveld15-Jul-05 2:27
Bob Stanneveld15-Jul-05 2:27 
GeneralRe: Serial number Validation Pin
David Crow15-Jul-05 2:41
David Crow15-Jul-05 2:41 
GeneralRe: Serial number Validation Pin
ovia15-Jul-05 2:52
ovia15-Jul-05 2:52 
GeneralRe: Serial number Validation Pin
David Crow15-Jul-05 3:06
David Crow15-Jul-05 3:06 
GeneralRe: Serial number Validation Pin
ovia15-Jul-05 21:19
ovia15-Jul-05 21:19 
GeneralRe: Serial number Validation Pin
David Crow16-Jul-05 11:00
David Crow16-Jul-05 11:00 
GeneralDeleting resouce problem Pin
TheDen15-Jul-05 2:22
TheDen15-Jul-05 2:22 
GeneralRe: Deleting resouce problem Pin
David Crow15-Jul-05 2:45
David Crow15-Jul-05 2:45 
GeneralRe: Deleting resouce problem Pin
kreaThor25-Jul-05 0:12
kreaThor25-Jul-05 0:12 
General(ATL/COM/MFC/C++) Q about IE programming Pin
Member 212103815-Jul-05 2:18
Member 212103815-Jul-05 2:18 
GeneralRe: (ATL/COM/MFC/C++) Q about IE programming Pin
fakefur15-Jul-05 8:35
fakefur15-Jul-05 8:35 
GeneralRe: (ATL/COM/MFC/C++) Q about IE programming Pin
Member 212103815-Jul-05 20:16
Member 212103815-Jul-05 20:16 
GeneralPointery Confusion Pin
sroberts8215-Jul-05 2:03
sroberts8215-Jul-05 2:03 
GeneralRe: Pointery Confusion Pin
Bob Stanneveld15-Jul-05 2:29
Bob Stanneveld15-Jul-05 2:29 
GeneralAsm code Generation for a CPP source code Pin
phijophlip15-Jul-05 1:08
phijophlip15-Jul-05 1:08 
GeneralRe: Asm code Generation for a CPP source code Pin
geek15-Jul-05 1:44
geek15-Jul-05 1:44 

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.